cellannotation / cell-annotation-schema

General, open-standard schema for cell annotations
9 stars 1 forks source link

Unit tests working with test_data only #35

Closed hkir-dev closed 8 months ago

hkir-dev commented 8 months ago

Unit tests should only test the behaviour of the code. Updating the schema shouldn't fail unit tests. Code should work with any schema. This PR updates unit tests to test the code with the schemas located in the test_data folder.

However, there is a bug in the schema merging, so test_data/*_extension.json schemas are accidentally merged with the ./general_schema.json instead of the test_data/general_schema.json. This fixed in the json_utils.py.

hkir-dev commented 8 months ago

Now all unit tests are using the schemas defined in the test_data folder.