cti-python-stix2/stix2/test
Michael Chisholm d87718c15c Bug fixes, hackage removal, and some pre-commit stylistic
fixes.

- Fixed bugged logic in _STIXBase._check_at_least_one_property(),
and revamped the code to be simpler and clearer.

- Changed custom extension registration to auto-create an
"extension_type" property based on the attribute of that
name on the custom class, if present.

- The custom extension registration change above uncovered
what seemed like a bug in a unit test: a custom extension
was registered, but it was not given an extension type.  The
test used the extension as extension_type="property-extension";
this now causes a standard error about an extra property.  I
fixed the test to assign the custom extension the proper type.
2021-06-30 17:50:00 -04:00
..
v20 Bug fixes, hackage removal, and some pre-commit stylistic 2021-06-30 17:50:00 -04:00
v21 Bug fixes, hackage removal, and some pre-commit stylistic 2021-06-30 17:50:00 -04:00
__init__.py
test_hashes.py
test_pattern_equivalence.py
test_properties.py
test_spec_version_detect.py
test_utils_type_checks.py
test_workbench.py