rcpch / rcpch-census-platform

A Django-rest-framework project to return deprivation scores across the UK against a postcode or lsoa code
MIT License
0 stars 1 forks source link

Eatyourpeas/issue19 #21

Closed eatyourpeas closed 9 months ago

eatyourpeas commented 10 months ago

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

eatyourpeas commented 9 months ago

This PR is nolonger needed as tests have been moved into #22