From e2765263b4236993d849ca330717c208c45cc221 Mon Sep 17 00:00:00 2001 From: Ziktofel Date: Sat, 1 Jun 2024 15:26:53 +0200 Subject: [PATCH] Reformat SC2 unit tests --- worlds/sc2/test/test_itemdescriptions.py | 1 + worlds/sc2/test/test_itemgroups.py | 1 + worlds/sc2/test/test_mission_groups.py | 2 +- worlds/sc2/test/test_options.py | 1 + worlds/sc2/test/{test_Regions.py => test_regions.py} | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) rename worlds/sc2/test/{test_Regions.py => test_regions.py} (99%) diff --git a/worlds/sc2/test/test_itemdescriptions.py b/worlds/sc2/test/test_itemdescriptions.py index acafa63c0dfe..ae378319207e 100644 --- a/worlds/sc2/test/test_itemdescriptions.py +++ b/worlds/sc2/test/test_itemdescriptions.py @@ -3,6 +3,7 @@ from .. import items from .. import item_descriptions + class TestItemDescriptions(unittest.TestCase): def test_all_items_have_description(self): for item_name in items.item_table: diff --git a/worlds/sc2/test/test_itemgroups.py b/worlds/sc2/test/test_itemgroups.py index 2114b6a8aff5..407c6170bbb6 100644 --- a/worlds/sc2/test/test_itemgroups.py +++ b/worlds/sc2/test/test_itemgroups.py @@ -5,6 +5,7 @@ import unittest from .. import item_groups, items + class ItemGroupsUnitTests(unittest.TestCase): def test_all_production_structure_groups_capture_all_units(self) -> None: self.assertCountEqual( diff --git a/worlds/sc2/test/test_mission_groups.py b/worlds/sc2/test/test_mission_groups.py index a8bb100d1dba..6db7325da7be 100644 --- a/worlds/sc2/test/test_mission_groups.py +++ b/worlds/sc2/test/test_mission_groups.py @@ -1,7 +1,7 @@ - import unittest from .. import mission_groups + class TestMissionGroups(unittest.TestCase): def test_all_mission_groups_are_defined_and_nonempty(self) -> None: for mission_group_name in mission_groups.MissionGroupNames.get_all_group_names(): diff --git a/worlds/sc2/test/test_options.py b/worlds/sc2/test/test_options.py index c08d2e3c22eb..b8a04e0f0b44 100644 --- a/worlds/sc2/test/test_options.py +++ b/worlds/sc2/test/test_options.py @@ -2,6 +2,7 @@ from .test_base import Sc2TestBase from .. import mission_tables, options + class TestOptions(unittest.TestCase): def test_campaign_size_option_max_matches_number_of_missions(self): self.assertEqual(options.MaximumCampaignSize.range_end, len(mission_tables.SC2Mission)) diff --git a/worlds/sc2/test/test_Regions.py b/worlds/sc2/test/test_regions.py similarity index 99% rename from worlds/sc2/test/test_Regions.py rename to worlds/sc2/test/test_regions.py index 973c84cdab9e..9381d6043e47 100644 --- a/worlds/sc2/test/test_Regions.py +++ b/worlds/sc2/test/test_regions.py @@ -3,6 +3,7 @@ from .. import mission_tables, regions from .. import options + class TestGridsizes(unittest.TestCase): def test_grid_sizes_meet_specs(self): self.assertTupleEqual((1, 2, 0), regions.get_grid_dimensions(2))