SoE: add tests ... (#1097)

* SoE: add tests ...

... for goals, bronze axe and bronze spear+

* SoE: fix tests
This commit is contained in:
black-sliver
2022-10-14 19:35:53 +02:00
committed by GitHub
parent 7f3f886e41
commit 097ac189e4
3 changed files with 159 additions and 0 deletions

22
test/soe/TestAccess.py Normal file
View File

@@ -0,0 +1,22 @@
import typing
from . import SoETestBase
class AccessTest(SoETestBase):
@staticmethod
def _resolveGourds(gourds: typing.Dict[str, typing.Iterable[int]]):
return [f"{name} #{number}" for name, numbers in gourds.items() for number in numbers]
def testBronzeAxe(self):
gourds = {
"Pyramid bottom": (118, 121, 122, 123, 124, 125),
"Pyramid top": (140,)
}
locations = ["Rimsala"] + self._resolveGourds(gourds)
items = [["Bronze Axe"]]
self.assertAccessDependency(locations, items)
def testBronzeSpearPlus(self):
locations = ["Megataur"]
items = [["Bronze Spear"], ["Lance (Weapon)"], ["Laser Lance"]]
self.assertAccessDependency(locations, items)