Organize tools and move Python tests into tools/tests
Full build / Import + headless tests (push) Successful in 38s
Full build / Full desktop build + optional release (push) Skipped

This commit is contained in:
zwitschi committed 2026-11-03 19:45:00 +01:00
1 parent 0aacee6518
commit e4e1566e55
22 files changed
+209 -3

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
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), 8)
self.assertEqual(len({row["character"] for row in rows}), 8)
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()