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 Add back usage of spec_version where HashesProperty is used for 2021-03-31 16:20:33 -04:00
test_pattern_equivalence.py pre-commit stylistic fix 2021-02-04 17:33:25 -05:00
test_properties.py pre-commit stylistic fix 2021-04-14 12:58:09 -04:00
test_spec_version_detect.py Improve is_sdo() et al utility functions with respect to 2021-01-20 16:59:39 -05:00
test_utils_type_checks.py pre-commit stylistic fixes 2021-01-20 20:49:01 -05:00
test_workbench.py Initial revamp of customization enforcement and detection. 2021-03-31 15:21:55 -04:00