-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
83 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
tests/test_components/test_cot_manager_component/test_cot_manager_general_controller.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
17 changes: 17 additions & 0 deletions
17
.../test_components/test_enterprise_sync_component/test_enteprise_sync_general_controller.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from unittest.mock import patch | ||
|
||
from FreeTAKServer.core.enterprise_sync.enterprise_sync_facade import EnterpriseSync | ||
from tests.test_components.misc import ComponentTest | ||
from tests.test_components.test_cot_manager_component.test_cot_manager_schemas import ( | ||
TEST_CONNECTION_SCHEMA, TEST_CREATE_REPEATED_MESSAGE_SCHEMA, | ||
TEST_DELETE_NON_EXISTENT_REPEATED_MESSAGE_SCHEMA, | ||
TEST_DELETE_REPEATED_MESSAGE_SCHEMA, TEST_GET_REPEATED_MESSAGES_SCHEMA | ||
) | ||
|
||
def test_save_enterprise_sync_data(): | ||
""" test the save enterprise sync data method works as follows: | ||
1. call save enterprise sync data from the enterprise sync facade | ||
2. call save enterprise sync data from the enterprise_sync_general_controller | ||
3. call convert_newlines from the enterprise_sync_format_sync_controller | ||
4. call save_file from the enterprise_sync_filesystem_controler | ||
""" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
tests/test_components/test_mission_component/test_mission_subscription_schemas.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
TEST_GET_ALL_SUBSCRIPTIONS_SCHEMA = """ | ||
import json | ||
TEST_GET_ALL_SUBSCRIPTIONS_SCHEMA = json.dumps( | ||
{ | ||
"request": { | ||
}, | ||
{ | ||
"action": "GetAllSubscriptions" | ||
}, | ||
}, | ||
"response": { | ||
"action": "GetAllSubscriptions", | ||
"values": { | ||
"message": [ | ||
{ | ||
"is_node": true | ||
"is_node": True | ||
} | ||
] | ||
} | ||
} | ||
} | ||
""" | ||
}) |