From 3ed5a5619f77f45f1ed6c5030447ad9581d9b8ba Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 18 Nov 2021 12:28:34 -0500 Subject: [PATCH] Tests: Add erroneous/extraneous comments from auth service tests --- .../authentication/test_authentication_service.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/services/authentication/test_authentication_service.py b/monkey/tests/unit_tests/monkey_island/cc/services/authentication/test_authentication_service.py index 62f73fa02..0cb8b1d45 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/services/authentication/test_authentication_service.py +++ b/monkey/tests/unit_tests/monkey_island/cc/services/authentication/test_authentication_service.py @@ -65,13 +65,6 @@ def patch_datastore_utils( ) -# pass a mock IUserDatastore - -# Mock reset_database -# mock reset_datastore_encryptor -# mock unlock_datastore_encryptor - - def test_needs_registration__true(tmp_path): has_registered_users = False mock_user_datastore = MockUserDatastore(lambda: has_registered_users, None, None) @@ -156,7 +149,6 @@ def test_authenticate__failed_wrong_credentials( a_s = AuthenticationService() a_s.initialize(tmp_path, mock_user_datastore) - # If authentication fails, this function will raise an exception and the test will fail. with pytest.raises(IncorrectCredentialsError): a_s.authenticate(username, password) @@ -171,7 +163,6 @@ def test_authenticate__failed_no_registered_user(tmp_path, mock_unlock_datastore a_s = AuthenticationService() a_s.initialize(tmp_path, mock_user_datastore) - # If authentication fails, this function will raise an exception and the test will fail. with pytest.raises(IncorrectCredentialsError): a_s.authenticate(USERNAME, PASSWORD)