Police-Data-Accessibility-Project / data-sources-app

An API and UI for using and maintaining the Data Sources database
MIT License
2 stars 4 forks source link

v2 testing documentation #297

Open josh-chamberlain opened 1 month ago

josh-chamberlain commented 1 month ago

Context

follows #271

Requirements

josh-chamberlain commented 1 month ago

@maxachis how much of this documentation would apply to other repos? I'm thinking we should have this figured out in advance of things like https://github.com/Police-Data-Accessibility-Project/data-source-identification/issues/49 so folks know how they should be writing tests

maxachis commented 1 month ago

@maxachis how much of this documentation would apply to other repos? I'm thinking we should have this figured out in advance of things like Police-Data-Accessibility-Project/data-source-identification#49 so folks know how they should be writing tests

@josh-chamberlain Here's what I think would generalize across repos:

  1. The test database and how to access it
  2. General principles for how to write tests
  3. Libraries to be used when running tests (e.g., pytest)