Ver código fonte

Updated test_factory.py

Vsevolod Levitan 1 ano atrás
pai
commit
dd3faa4424
1 arquivos alterados com 2 adições e 1 exclusões
  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
         
     # 
     # Проверка создание начальной номенклатуры