#Set Test_Env Var to true
import os
os.environ["TEST_ENV"] = "true"
from app import application as app
import unittest
from test import test_users , test_server , test_profile , \
        test_friends , test_invitations , test_stories ,  test_comments , \
        test_reactions , test_flashstories

loader = unittest.TestLoader()
suite  = unittest.TestSuite()

# add tests to the test suite
suite.addTests(loader.loadTestsFromModule(test_server))
suite.addTests(loader.loadTestsFromModule(test_users))
suite.addTests(loader.loadTestsFromModule(test_profile))
suite.addTests(loader.loadTestsFromModule(test_friends))
suite.addTests(loader.loadTestsFromModule(test_invitations))
suite.addTests(loader.loadTestsFromModule(test_stories))
suite.addTests(loader.loadTestsFromModule(test_flashstories))
suite.addTests(loader.loadTestsFromModule(test_comments))
suite.addTests(loader.loadTestsFromModule(test_reactions))

# initialize a runner, pass it your suite and run it
runner = unittest.TextTestRunner(verbosity=3)
result = runner.run(suite)