Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Apr 6, 2024
1 parent 43578f0 commit 821787d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/config/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,24 @@ def test_conditional_switch_platform_testing_mode(self) -> None:
given = copy.deepcopy(self.our_config)
given["cli_testing"]["testing_mode"]["platform_contribution"] = True
given["cli_testing"]["file_generation"]["no_file"] = False
given["cli_testing"]["display_mode"]["dots"] = False
given["cli_testing"]["autocontinue"] = True
given["cli_testing"]["inactive_db"] = True
given["cli_testing"]["mining"] = True
given["cli_testing"]["local_network"] = True
given["cli_testing"]["preload_file"] = True
given["cli_testing"]["display_mode"]["percentage"] = True

expected = copy.deepcopy(given)
expected["cli_testing"]["file_generation"]["no_file"] = True
expected["cli_testing"]["file_generation"]["no_file"] = True
expected["cli_testing"]["display_mode"]["dots"] = True
expected["cli_testing"]["autocontinue"] = False
expected["cli_testing"]["inactive_db"] = False
expected["cli_testing"]["mining"] = False
expected["cli_testing"]["local_network"] = False
expected["cli_testing"]["preload_file"] = False
expected["cli_testing"]["display_mode"]["percentage"] = False

actual = self.config_loader.conditional_switch(given)

Expand Down

0 comments on commit 821787d

Please sign in to comment.