scout icon indicating copy to clipboard operation
scout copied to clipboard

ecm_prep_web.py and run_web.py database operations not tested

Open trynthink opened this issue 3 years ago • 0 comments

The tests created to test the infrastructure added to Scout to support the web app rely on the populate_tests_schema.py file to copy ECMs and analysis results into the local PostgreSQL database to be tested for content and structure.

These tests do not cover the PostgreSQL database interactions in ecm_prep_web.py and run_web.py. Tests are needed to confirm that these files correctly interact with and populate the database. For verifying correct population of the database, the tests could use local files (e.g., ecm_prep.json and ecm_results.json) as a point of comparison for the database contents. (populate_tests_schema.py does include database instantiation that would be required for testing of ecm_prep_web.py and run_web.py.)

trynthink avatar Jul 12 '22 23:07 trynthink