Closed leocov-dev closed 5 months ago
Added automated tests via pytest framework.
pytest
execute:
some tests are slow due to computation time and they are marked with the slow pytest marker. they can be skipped locally like:
slow
pytest -m "not slow"
Individual test files or methods can be run if needed like:
# run a single file pytest tests/test_fov_util.py # run a single test from a file pytest tests/test_fov_util.py::test_fov_util_separation_for_density
updated Tetra3 to support testing by making the star-catalog path configurable.
Tetra3
some code from examples was migrated to test code
examples
examples/generate_database.py
tests/test_generate_database.py
examples/test_sky_fovs.py
tests/test_performance.py
tetra3/breadth_first_combinations.py
tests/test_breadth_first_combinations.py
Added automated tests via
pytest
framework.execute:
some tests are slow due to computation time and they are marked with the
slow
pytest marker. they can be skipped locally like:Individual test files or methods can be run if needed like:
updated
Tetra3
to support testing by making the star-catalog path configurable.some code from
examples
was migrated to test codeexamples/generate_database.py
was migrated totests/test_generate_database.py
examples/test_sky_fovs.py
was migrated totests/test_performance.py
tetra3/breadth_first_combinations.py
was migrated totests/test_breadth_first_combinations.py