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

plot creation tests should not rely on access to /apophis #643

Open
carrholt opened this issue May 9, 2024 · 0 comments
Open

plot creation tests should not rely on access to /apophis #643

carrholt opened this issue May 9, 2024 · 0 comments

Comments

@carrholt
Copy link
Contributor

carrholt commented May 9, 2024

The test setup is relying on access to a directory that it shouldn't need

`======================================================================
ERROR: test_plot_gallonglat (core.tests.test_plots.TestMakeVisibilityPlot)

Traceback (most recent call last):
File "/Users/carrieholt/git/neoexchange/neoexchange/core/tests/test_plots.py", line 157, in test_plot_gallonglat
response = make_visibility_plot(None, self.test_body.pk, 'glonglat', self.start_time)
File "/Users/carrieholt/git/neoexchange/neoexchange/core/plots.py", line 173, in make_visibility_plot
os.makedirs(os.path.join(default_storage.base_location, base_dir))
File "/Users/carrieholt/micromamba/envs/neoexchange/lib/python3.9/os.py", line 215, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/Users/carrieholt/micromamba/envs/neoexchange/lib/python3.9/os.py", line 215, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/Users/carrieholt/micromamba/envs/neoexchange/lib/python3.9/os.py", line 215, in makedirs
makedirs(head, exist_ok=exist_ok)
[Previous line repeated 1 more time]
File "/Users/carrieholt/micromamba/envs/neoexchange/lib/python3.9/os.py", line 225, in makedirs
mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/apophis'`

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

No branches or pull requests

1 participant