Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Dec 7, 2022

No description provided.

@duncandewhurst duncandewhurst requested a review from lgs85 December 16, 2022 02:39

Tests are written using the [pytest framework](https://docs.pytest.org/en/7.2.x/) and use methods from [JSON Schema and CSV Codelists](https://jscc.readthedocs.io/en/latest/).

There are two test files:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is out of date - there are 3 now. test_examples_json.py is new.

I'd suggest a better approach is to point to the the tests directory on GitHub and we'll make sure there are docstrings/comments there.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can a string be added a the top of each file with a summary of what the tests cover (like the bullet points below)?

Based on experience from OCDS, we can't expect analysts to be able to read a Python file and understand what is tested so we should provide some higher-level documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants