Responsible for downloading, updating and maintaining data between the numerous state and federal data sources, and the user edits made within the Atlas application.
c/Django_Projects/03_geodjango/Atlas/datasets/Raw_datasets
source env/scripts/activate
cd scripts python update_data.py
cd scripts pytest -s tests/end_to_end_test.py This will prompt you on which section you want to test for.
location: C:\Django_Projects\03_geodjango\Atlas\datasets\Raw_datasets\scripts\functions\tests pytest.ini holds the configs that determine the tests to be run location: C:\Django_Projects\03_geodjango\Atlas\datasets\Raw_datasets\scripts\functions\tests\pytest.ini
examples: run all tests in a module: pytest -s functions/tests/file_name.py run tests in a class: pytest -s functions/tests/file_name.py::class_name run tests in a function: pytest -s functions/tests/file_name.py::class_name::function_name output print functions: pytest -s
pg_dump --port=5432 --username=postgres --host=localhost --dbname=atlas > atlas_dump.sql
all tests passing at: pytest -s functions/tests/