Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
flagrama committed Aug 16, 2024
1 parent fecfbd6 commit c497661
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tests/unit/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,21 +244,25 @@ def test_reset_distribution(self):
def test_check_dependency_randomized_setting(self):
test_settings = Settings.Settings({"randomize_settings": True})

result = test_settings.check_dependency('bridge', True) # check_random is always True when used
result = test_settings.check_dependency(
"bridge", True
) # check_random is always True when used

self.assertFalse(result)

def test_check_dependency_non_randomized_setting(self):
test_settings = Settings.Settings({"randomize_settings": True})

result = test_settings.check_dependency('logic_rules', True) # check_random is always True when used
result = test_settings.check_dependency(
"logic_rules", True
) # check_random is always True when used

self.assertTrue(result)

def test_check_dependency_randomizable_setting_not_randomized(self):
test_settings = Settings.Settings({})

result = test_settings.check_dependency('bridge', True)
result = test_settings.check_dependency("bridge", True)

self.assertTrue(result)

Expand All @@ -267,7 +271,7 @@ def test_get_dependency_randomized_setting(self):

result = test_settings.get_dependency("bridge", True)

self.assertEqual(result, test_settings.settings_dict['bridge'])
self.assertEqual(result, test_settings.settings_dict["bridge"])

def test_get_dependency_setting_not_randomized(self):
test_settings = Settings.Settings({"randomize_settings": True})
Expand Down Expand Up @@ -296,7 +300,7 @@ def test_remove_disabled(self):

test_settings.remove_disabled()

self.assertEqual(test_settings.settings_dict['starting_age'], "child")
self.assertEqual(test_settings.settings_dict["starting_age"], "child")

# resolve_random_settings
# Should probably be private
Expand Down

0 comments on commit c497661

Please sign in to comment.