Files
security-game/tools/tests/test_npc_proportions.py
T
zwitschi 4e8665e25b
Full build / Import + headless tests (push) Successful in 42s
Full build / Full desktop build + optional release (push) Skipped
Add the four crowd-variety characters and extend the baseline to twelve
2026-11-04 10:57:58 +01:00

23 lines
736 B
Python

import unittest
import npc_proportions
class NpcProportionTests(unittest.TestCase):
def test_every_library_character_is_measured(self):
rows = npc_proportions.report()
self.assertEqual(len(rows), 12)
self.assertEqual(len({row["character"] for row in rows}), 12)
for row in rows:
self.assertGreater(row["measurements"]["height"], 1.6)
def test_current_library_stays_inside_the_stylized_guide(self):
for row in npc_proportions.report():
for key, check in row["checks"].items():
self.assertEqual(check["status"], "ok",
f"{row['character']} {key}={check['value']}")
if __name__ == "__main__":
unittest.main()