From 9870c417992984f089b37eeed5d16161f9f2c831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20L=C3=BCcke?= Date: Tue, 14 Jul 2026 12:35:52 +0200 Subject: [PATCH] =?UTF-8?q?tests:=20w=C3=A4hrend=20der=20Erstellung=20erfo?= =?UTF-8?q?lgt=20eine=20Kontrolle=20des=20Gewichts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_mech/__init__.py | 8 ++++---- tests/test_mech_bau.py | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/tests/test_mech/__init__.py b/tests/test_mech/__init__.py index ccead65..047914d 100644 --- a/tests/test_mech/__init__.py +++ b/tests/test_mech/__init__.py @@ -19,13 +19,13 @@ OUTER_ARMOR = { ZoneNames.MIDDLE_TORSO_FRONT: 8, ZoneNames.MIDDLE_TORSO_REAR: 4, ZoneNames.LEFT_TORSO_FRONT: 8, - ZoneNames.LEFT_TORSO_REAR: 3, + ZoneNames.LEFT_TORSO_REAR: 2, ZoneNames.RIGHT_TORSO_FRONT: 8, - ZoneNames.RIGHT_TORSO_REAR: 3, + ZoneNames.RIGHT_TORSO_REAR: 2, ZoneNames.LEFT_ARM: 5, ZoneNames.RIGHT_ARM: 5, - ZoneNames.LEFT_LEG: 7, - ZoneNames.RIGHT_LEG: 7, + ZoneNames.LEFT_LEG: 8, + ZoneNames.RIGHT_LEG: 8, } NEXT_OUTER_ZONE = { diff --git a/tests/test_mech_bau.py b/tests/test_mech_bau.py index d39aef0..8c5f2b8 100755 --- a/tests/test_mech_bau.py +++ b/tests/test_mech_bau.py @@ -161,3 +161,23 @@ class TestMechAmor(AbstractTestMechAmor): zone = mech.inner_structure.zones.get(zone_name) should_outer_armor = OUTER_ARMOR[zone_name] self.assertEqual(should_outer_armor, zone.armor) + + +class TestMechWeightWatch(AbstractTestMechAmor): + + def test_watch(self): + watcher = self.factory.watcher + ''' + Aufstellung Gewichte: + Bauteil | Gewicht in Tonnen + ------------------------------------ + Reaktor | 6.0 + Gyroskope | 2.0 + Interne-Struktur | 2.0 + Cockpit | 3.0 + Panzerung | 4.0 + ------------------------------------ + | 17.0 + ''' + self.assertEqual(17.0, watcher.actual_weight) + self.assertEqual(3.0, watcher.rest_weight)