Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running tests should not modify committed files #14

Open
yarikoptic opened this issue Jul 23, 2024 · 0 comments
Open

running tests should not modify committed files #14

yarikoptic opened this issue Jul 23, 2024 · 0 comments

Comments

@yarikoptic
Copy link

having ran tests is changing a committed file

❯ git co -
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
❯ python -m pytest -sv .
=============================================================================== test session starts ================================================================================
platform linux -- Python 3.12.4, pytest-8.3.1, pluggy-1.5.0 -- /home/yoh/proj/dandi/linkml-aind-model/venv/3.12/bin/python
cachedir: .pytest_cache
rootdir: /home/yoh/proj/dandi/linkml-aind-model
collected 2 items                                                                                                                                                                  

test_cli.py::test_smoke_cli PASSED
test_converters.py::test_smoke Success!
PASSED

================================================================================ 2 passed in 1.06s =================================================================================
changes on filesystem:                                                                                                                                                              
 generated_linkml_models/aind.yml | 3512 --------------------------------------

which it shouldn't do (test should operate on a copy in a temp repo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant