Browse Source

Updated test_factory.py

Vsevolod Levitan 1 year ago
parent
commit
dd3faa4424
1 changed files with 2 additions and 1 deletions
  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
         
     # 
     # Проверка создание начальной номенклатуры