Explorar o código

Updated test_factory.py

Vsevolod Levitan hai 1 ano
pai
achega
dd3faa4424
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      tests/test_factory.py

+ 2 - 1
tests/test_factory.py

@@ -19,7 +19,8 @@ class factory_test(unittest.TestCase):
         # Действие
         
         # Проверки
-        assert unit is not None
+        assert isinstance(unit, measurement_unit_model)
+        assert unit.base_coefficient == 1000
         
     # 
     # Проверка создание начальной номенклатуры