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

Ensure tests do not affect local system when run locally. #302

Open
adamltyson opened this issue May 20, 2024 · 0 comments
Open

Ensure tests do not affect local system when run locally. #302

adamltyson opened this issue May 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@adamltyson
Copy link
Member

E.g. test_config_file.test_config_edit (see #300)

Comment from @alessandrofelder:

One thing maybe worth trying (that I think would be a good idea across BrainGlobe) is to monkeypatch Path.home() for all tests when not running on CI. It looks like there's a few constant variables that need to be adapted for the patching to work. This way
we test a slightly more real-life case on CI (Path.home() is not patched, but that's fine, because the CI does not have a user set up.)
we locally keep ~./brainglobe/ (user data) and ~/.brainglobe-tests/.brainglobe/ (tests interacting with fake user data) always completely separate.

@adamltyson adamltyson added the enhancement New feature or request label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant