xenanetworks / open-automation-rfc-test-suites

🚀 XOA test suite library for network performance benchmarking and more.
https://docs.xenanetworks.com/projects/xoa-core
Apache License 2.0
2 stars 1 forks source link

Pydantic raise duplicate validator function error when testing with pytest #16

Closed fpfeng closed 1 year ago

fpfeng commented 1 year ago
E   pydantic.errors.ConfigError: duplicate validator function "plugin2544.dataset.PluginModel2544.check_test_type_enable"; if this is intended, set `allow_reuse=True`

pydantic/class_validators.py:152: ConfigError

Will try to merge those validators to single one.

fpfeng commented 1 year ago

@ArtemConstantinov Indeed 2544 had some duplicate validator, it is interesting no error when execute in the way "main.py" as we usually do.

fpfeng commented 1 year ago

Fixed in my pytest code.