Skip to content

Commit

Permalink
Reformat SC2 unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziktofel committed Jun 1, 2024
1 parent 2a30fbe commit e276526
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions worlds/sc2/test/test_itemdescriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions worlds/sc2/test/test_itemgroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion worlds/sc2/test/test_mission_groups.py
Original file line number Diff line number Diff line change
@@ -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():
Expand Down
1 change: 1 addition & 0 deletions worlds/sc2/test/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e276526

Please sign in to comment.