This pull request includes several changes to the access_amherst_backend project, focusing on environment-specific settings, test improvements, and code cleanup. The most important changes include the addition of environment-specific settings, removal of skipped test markers, and cleanup of redundant code.
This pull request includes several changes to the
access_amherst_backend
project, focusing on environment-specific settings, test improvements, and code cleanup. The most important changes include the addition of environment-specific settings, removal of skipped test markers, and cleanup of redundant code.Environment-specific settings:
access_amherst_backend/access_amherst_backend/settings/__init__.py
: Added logic to load environment-specific settings based on theDJANGO_ENV
environment variable.access_amherst_backend/access_amherst_backend/settings/base_settings.py
: Renamed fromsettings.py
and updated paths and static files settings. [1] [2] [3]access_amherst_backend/access_amherst_backend/settings/production.py
: Created file to define production-specific settings.access_amherst_backend/access_amherst_backend/settings/testing.py
: Created file to define testing-specific settings.Test improvements:
access_amherst_backend/access_amherst_tests/test_email_saver.py
: Removed@pytest.mark.skip
decorators from multiple test functions to enable them for testing. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16]access_amherst_backend/access_amherst_tests/test_generate_map.py
: Removed@pytest.mark.skip
decorators from test functions to enable them for testing. [1] [2] [3] [4]Code cleanup:
access_amherst_backend/access_amherst_algo/management/commands/daily_mammoth_workflow.py
: Removed thedaily_mammoth_workflow
management command as it is no longer needed.