Skip to content

Commit 7a54e80

Browse files
committed
remove comments
1 parent 8bc7ef9 commit 7a54e80

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎test/units/test_commands.py‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from unittest.mock import patch, MagicMock
44
from attackmate.result import Result as AttackMateResult
55
from attackmate.schemas.base import BaseCommand
6-
# Mock the AttackMate dependencies and the router
76

87

98
@pytest.fixture
@@ -13,7 +12,6 @@ def mock_command_dependencies():
1312
Uses ExitStack for safe context manager grouping in Python 3.10.
1413
"""
1514
with ExitStack() as stack:
16-
# Patch dependencies in the module where they are looked up (routers.commands)
1715
mock_get_current_user = stack.enter_context(
1816
patch('attackmate_api_server.routers.commands.get_current_user', return_value='testuser')
1917
)
@@ -26,15 +24,12 @@ def mock_command_dependencies():
2624
return_value={
2725
'state': 'data'}))
2826

29-
# Yield the mocked objects to the tests for configuration (e.g., setting return_value)
3027
yield {
3128
'get_current_user': mock_get_current_user,
3229
'get_persistent_instance': mock_get_persistent_instance,
3330
'varstore_to_state_model': mock_varstore_to_state_model
3431
}
3532

36-
# Define a mock application that includes the commands router
37-
3833

3934
@pytest.fixture
4035
def mock_command_app(mock_command_dependencies):

0 commit comments

Comments
 (0)