Adds pytest django
Add IMD and quantile test sets for England, Northern Ireland, Wales and Scotland
Adds seeding to conf.py and tests for each devolved nation
This issue is a bit broad and does not cover all of testing, but is a good start.
In particular it does not test:
quantile calculation for Northern Ireland
basic request/response tests
negative tests - ie expected fails
Code changes
There is a new tests folder within the deprivation_scores application, with a file for each set of tests.
The constants folder has files updated with test data taken from national archives.
It is harder to find random postcodes for Scotland and Northern Ireland and there is no bulk government tool for Northern Ireland to test multiple postcodes.
Documentation changes (done or required as a result of this PR)
Overview
Adds pytest django Add IMD and quantile test sets for England, Northern Ireland, Wales and Scotland Adds seeding to conf.py and tests for each devolved nation
This issue is a bit broad and does not cover all of testing, but is a good start.
In particular it does not test: quantile calculation for Northern Ireland basic request/response tests negative tests - ie expected fails
Code changes
There is a new tests folder within the deprivation_scores application, with a file for each set of tests. The constants folder has files updated with test data taken from national archives. It is harder to find random postcodes for Scotland and Northern Ireland and there is no bulk government tool for Northern Ireland to test multiple postcodes.
Documentation changes (done or required as a result of this PR)
Updates have been made to the README.md.
Related Issues
closes #19
Mentions
@anchit-chandran as the pytest expert