Closed mwalker-scottlogic closed 1 week ago
current status: ✅
Overall Coverage
Lines Covered Coverage Threshold Status 773 726 94% 80% 🟢 New Files
No new covered files...
Modified Files
No covered modified files...
updated for commit:
f9bf4b0
by action🐍
Description
Two test files have been created, one with validation tests, and the other seeding the database and making assertions on the API responses. Included in this PR is a slight refactor of existing API tests to use same method of generating test data
air-quality-backend/system_tests/api_suite/forecast_api_seeded_data_tests.py
air-quality-backend/system_tests/api_suite/measurements_summary_api_validation_tests.py
validation tests checking if missing or empty required parameters are validatedair-quality-backend/system_tests/api_suite/measurements_summary_api_seeded_data_tests.py
database is seeded with data, tests checking filtering behaviour of parameters in the response, and that means and AQI are attributed correctlytest__different_base_times__assert_data_filtered_appropriately
test__different_measurement_time_range__assert_data_filtered_appropriately
test__response_contains_correct_pollutant_mean_values
test__response_contains_correct_pollutant_mean_aqi_level
test__response_contains_correct_mean_overall_aqi_level
test__check_measurement_base_time_in_response_is_correct
air-quality-backend/system_tests/data/forecast_api_test_data.py
method to generate forecast test dataair-quality-backend/system_tests/data/measurement_summary_api_test_data.py
method to generate in situ test dataair-quality-backend/system_tests/utils/routes.py
place to store the url