You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the invoke unittest command is used, unit tests are failing.
This is the output from my local machine:
➜ nautobot-plugin-data-validation-engine git:(travis) poetry run invoke unittest
Creating nautobot_data_validation_engine_nautobot_run ... done
Wrapping model clean methods for custom validators failed because the ContentType table was not available or populated. This is normal during the execution of the migration command for the first time.
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
.......................................FFFF...FF.............................................................................
======================================================================
FAIL: test_empty_field_values_raise_validation_error (nautobot_data_validation_engine.tests.test_custom_validators.MinMaxValidationRuleModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/source/nautobot_data_validation_engine/tests/test_custom_validators.py", line 89, in test_empty_field_values_raise_validation_error
site.clean()
AssertionError: ValidationError not raised
======================================================================
FAIL: test_field_value_type_raise_validation_error (nautobot_data_validation_engine.tests.test_custom_validators.MinMaxValidationRuleModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/source/nautobot_data_validation_engine/tests/test_custom_validators.py", line 108, in test_field_value_type_raise_validation_error
site.clean()
AssertionError: ValidationError not raised
======================================================================
FAIL: test_max_violation_raise_validation_error (nautobot_data_validation_engine.tests.test_custom_validators.MinMaxValidationRuleModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/source/nautobot_data_validation_engine/tests/test_custom_validators.py", line 146, in test_max_violation_raise_validation_error
site.clean()
AssertionError: ValidationError not raised
======================================================================
FAIL: test_min_violation_raise_validation_error (nautobot_data_validation_engine.tests.test_custom_validators.MinMaxValidationRuleModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/source/nautobot_data_validation_engine/tests/test_custom_validators.py", line 127, in test_min_violation_raise_validation_error
site.clean()
AssertionError: ValidationError not raised
======================================================================
FAIL: test_empty_field_values_coerced_to_empty_string (nautobot_data_validation_engine.tests.test_custom_validators.RegularExpressionValidationRuleModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/source/nautobot_data_validation_engine/tests/test_custom_validators.py", line 64, in test_empty_field_values_coerced_to_empty_string
site.clean()
AssertionError: ValidationError not raised
======================================================================
FAIL: test_invalid_regex_matches_raise_validation_error (nautobot_data_validation_engine.tests.test_custom_validators.RegularExpressionValidationRuleModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/source/nautobot_data_validation_engine/tests/test_custom_validators.py", line 30, in test_invalid_regex_matches_raise_validation_error
site.clean()
AssertionError: ValidationError not raised
----------------------------------------------------------------------
Ran 125 tests in 6.259s
FAILED (failures=6)
Destroying test database for alias 'default'...
When the
invoke unittest
command is used, unit tests are failing.This is the output from my local machine:
The same result is also seen on Travis:
https://travis-ci.com/github/nautobot/nautobot-plugin-data-validation-engine/builds/228644947
Because of this, the
invoke unittest
command is currently disabled in.travis.yml
. It should be re-enabled after unit tests are fixed.The text was updated successfully, but these errors were encountered: