Closed himynamesdave closed 1 month ago
not a bug, filtering doc._is_ref == false
in the test fixes this
But why are there old objects? The script has only run once at this point, and deletes any historic versions of objects first
There are no old or odd objects, the filter you were using is wrong
That's not correct @fqrious .
Take the test shown earlier
python3 -m unittest tests/test_1_0_capec_to_attack.py
the imported CAPEC file has 1212 objects (no relationships).
tests/files/stix-capec-v3_9.json
The imported objects seems to be created 4 times. See expected result, and then the actual result (which is always exactly 4 times larger)