Measure all eight exported characters and record the stylized proportion bands. All variants pass; no skeleton or mesh rescale was needed.
23 lines
734 B
Python
23 lines
734 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), 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()
|