Files
Grinch-AP/worlds/sc2/test/test_itemdescriptions.py
Ziktofel 5f1835c546 SC2: Content update (#5312)
Feature highlights:
- Adds many content to the SC2 game
- Allows custom mission order
- Adds race-swapped missions for build missions (except Epilogue and NCO)
- Allows War Council Nerfs (Protoss units can get pre - War Council State, alternative units get another custom nerf to match the power level of base units)
- Revamps Predator's upgrade tree (never was considered strategically important)
- Adds some units and upgrades
- Locked and excluded items can specify quantity
- Key mode (if opt-in, missions require keys to be unlocked on top of their regular regular requirements
- Victory caches - Victory locations can grant multiple items to the multiworld instead of one 
- The generator is more resilient for generator failures as it validates logic for item excludes
- Fixes the following issues:
  - https://github.com/ArchipelagoMW/Archipelago/issues/3531 
  - https://github.com/ArchipelagoMW/Archipelago/issues/3548
2025-09-02 17:40:58 +02:00

19 lines
945 B
Python

import unittest
from ..item import item_descriptions, item_tables
class TestItemDescriptions(unittest.TestCase):
def test_all_items_have_description(self) -> None:
for item_name in item_tables.item_table:
self.assertIn(item_name, item_descriptions.item_descriptions)
def test_all_descriptions_refer_to_item_and_end_in_dot(self) -> None:
for item_name, item_desc in item_descriptions.item_descriptions.items():
self.assertIn(item_name, item_tables.item_table)
self.assertEqual(item_desc.strip()[-1], '.', msg=f"{item_name}'s item description does not end in a '.': '{item_desc}'")
def test_item_descriptions_follow_single_space_after_period_style(self) -> None:
for item_name, item_desc in item_descriptions.item_descriptions.items():
self.assertNotIn('. ', item_desc, f"Double-space after period in description for {item_name}")