RCAL-567 Update unit tests to add tmpdir for test files #702
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves RCAL-567
Closes #
This PR updates unit tests to add tmpdir for test files.
Unit tests
pytest /Users/ddavis/src/Roman/romancal/romancal/associations/tests/
=================================================================== test session starts ===================================================================
platform darwin -- Python 3.11.0, pytest-7.3.1, pluggy-1.0.0
rootdir: /Users/ddavis/src/Roman/romancal
configfile: pyproject.toml
...
============================================================== 55 passed, 1 skipped in 0.98s
ls *.json
ls: *.json: No such file or directory
pytest /Users/ddavis/src/Roman/romancal/romancal/tweakreg/tests/
=================================================================== test session starts ===================================================================
platform darwin -- Python 3.11.0, pytest-7.3.1, pluggy-1.0.0
rootdir: /Users/ddavis/src/Roman/romancal
configfile: pyproject.toml
plugins: remotedata-0.4.0, hypothesis-6.75.1, asdf-2.15.0, mock-3.10.0, filter-subpackage-0.1.2, astropy-header-0.2.2, doctestplus-0.12.1, astropy-0.10.0, cov-4.0.0, ci-watson-0.6.1, openfiles-0.5.0, arraydiff-0.5.0
collected 94 items
../../../romancal/romancal/tweakreg/tests/test_astrometric_utils.py ....................................... [ 41%]
../../../romancal/romancal/tweakreg/tests/test_tweakreg.py ....................................................... [100%]
...
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================================================== 94 passed, 6 warnings in 73.33s (0:01:13) ========================================================
(rcal_python311) bash>ls ref_cat.escv
ls: ref_cat.escv: No such file or directory
Checklist
CHANGES.rst
under the corresponding subsection