Skip to content

Commit

Permalink
refined test running message
Browse files Browse the repository at this point in the history
  • Loading branch information
carpecodeum committed Feb 4, 2020
1 parent 38843f8 commit 44c033d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion components/core/tests/Bassa_endpoint_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ def test_api_login_incorrectly_return_403(self):
resp = requests.post('http://localhost:5000/api/login',incorrect_string,headers=headers)
self.assertEqual(resp.status_code,403)
if __name__ == "__main__":
unittest.main()
suite = unittest.TestLoader().loadTestsFromTestCase(Test)
unittest.TextTestRunner(verbosity=2).run(suite)

5 changes: 4 additions & 1 deletion components/core/tests/login_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@ def test_correct_check_approved(self):


if __name__ == "__main__":
unittest.main()
suite = unittest.TestLoader().loadTestsFromTestCase(Test)
unittest.TextTestRunner(verbosity=2).run(suite)


4 changes: 3 additions & 1 deletion components/core/tests/user_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ def test_remove_regular_user(self):


if __name__ == "__main__":
unittest.main()
suite = unittest.TestLoader().loadTestsFromTestCase(Test)
unittest.TextTestRunner(verbosity=2).run(suite)

0 comments on commit 44c033d

Please sign in to comment.