#917 - Integrated the PrimaiteSession into all tests.

- Ran a full pre-commit hook and thus encountered tons of fixes required
This commit is contained in:
Chris McCarthy
2023-06-30 09:08:13 +01:00
parent 7f912df383
commit 73015802ec
62 changed files with 1880 additions and 802 deletions

View File

@@ -60,7 +60,9 @@ def test_os_state_change_if_not_compromised(operating_state, expected_state):
1,
)
active_node.set_software_state_if_not_compromised(SoftwareState.OVERWHELMED)
active_node.set_software_state_if_not_compromised(
SoftwareState.OVERWHELMED
)
assert active_node.software_state == expected_state
@@ -98,7 +100,9 @@ def test_file_system_change(operating_state, expected_state):
(HardwareState.ON, FileSystemState.CORRUPT),
],
)
def test_file_system_change_if_not_compromised(operating_state, expected_state):
def test_file_system_change_if_not_compromised(
operating_state, expected_state
):
"""
Test that a node cannot change its file system state.
@@ -116,6 +120,8 @@ def test_file_system_change_if_not_compromised(operating_state, expected_state):
1,
)
active_node.set_file_system_state_if_not_compromised(FileSystemState.CORRUPT)
active_node.set_file_system_state_if_not_compromised(
FileSystemState.CORRUPT
)
assert active_node.file_system_state_actual == expected_state