mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
SoE: minor typing and style fixes (#2724)
* SoE: fix typing for tests * SoE: explicitly export pyevermizer To support loading the module from source (rather than module) we import pyevermizer from `__init__.py` in other files. This has been an implicit export and `mypy --strict` disables implicit exports, so we export it explicitly now. * SoE: fix style in patch.py * SoE: remove unused imports * SoE: fix format mistakes * SoE: cleaner typing in SoEOptions.flags as suggested by beauxq
This commit is contained in:
@@ -8,7 +8,7 @@ class TestFragmentGoal(SoETestBase):
|
||||
"required_fragments": 20,
|
||||
}
|
||||
|
||||
def test_fragments(self):
|
||||
def test_fragments(self) -> None:
|
||||
self.collect_by_name(["Gladiator Sword", "Diamond Eye", "Wheel", "Gauge"])
|
||||
self.assertBeatable(False) # 0 fragments
|
||||
fragments = self.get_items_by_name("Energy Core Fragment")
|
||||
@@ -24,11 +24,11 @@ class TestFragmentGoal(SoETestBase):
|
||||
self.assertEqual(self.count("Energy Core Fragment"), 21)
|
||||
self.assertBeatable(True)
|
||||
|
||||
def test_no_weapon(self):
|
||||
def test_no_weapon(self) -> None:
|
||||
self.collect_by_name(["Diamond Eye", "Wheel", "Gauge", "Energy Core Fragment"])
|
||||
self.assertBeatable(False)
|
||||
|
||||
def test_no_rocket(self):
|
||||
def test_no_rocket(self) -> None:
|
||||
self.collect_by_name(["Gladiator Sword", "Diamond Eye", "Wheel", "Energy Core Fragment"])
|
||||
self.assertBeatable(False)
|
||||
|
||||
@@ -38,16 +38,16 @@ class TestShuffleGoal(SoETestBase):
|
||||
"energy_core": "shuffle",
|
||||
}
|
||||
|
||||
def test_core(self):
|
||||
def test_core(self) -> None:
|
||||
self.collect_by_name(["Gladiator Sword", "Diamond Eye", "Wheel", "Gauge"])
|
||||
self.assertBeatable(False)
|
||||
self.collect_by_name(["Energy Core"])
|
||||
self.assertBeatable(True)
|
||||
|
||||
def test_no_weapon(self):
|
||||
def test_no_weapon(self) -> None:
|
||||
self.collect_by_name(["Diamond Eye", "Wheel", "Gauge", "Energy Core"])
|
||||
self.assertBeatable(False)
|
||||
|
||||
def test_no_rocket(self):
|
||||
def test_no_rocket(self) -> None:
|
||||
self.collect_by_name(["Gladiator Sword", "Diamond Eye", "Wheel", "Energy Core"])
|
||||
self.assertBeatable(False)
|
||||
|
||||
Reference in New Issue
Block a user