forked from IMAP-Science-Operations-Center/imap_processing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Make sure configurations are synced between packages (IMAP-Scien…
…ce-Operations-Center#336) This moves all the data configuration handling to the imap_data_access package.
- Loading branch information
Showing
5 changed files
with
10 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
"""Global pytest configuration for the package.""" | ||
import imap_data_access | ||
import pytest | ||
|
||
import imap_processing | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def _set_global_data_dir(tmp_path): | ||
def _set_global_config(monkeypatch, tmp_path): | ||
"""Set the global data directory to a temporary directory.""" | ||
_original_data_dir = imap_processing.config["DATA_DIR"] | ||
imap_processing.config["DATA_DIR"] = tmp_path | ||
yield | ||
imap_processing.config["DATA_DIR"] = _original_data_dir | ||
monkeypatch.setitem(imap_data_access.config, "DATA_DIR", tmp_path) | ||
monkeypatch.setitem( | ||
imap_data_access.config, "DATA_ACCESS_URL", "https://api.test.com" | ||
) |
This file was deleted.
Oops, something went wrong.