-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert init message, add fixtures dir
- Loading branch information
1 parent
e436413
commit 1895d21
Showing
3 changed files
with
25 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"""init file.""" | ||
"""This module exposes all high level APIs for stac-mjx.""" |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import pytest | ||
from unittest.mock import Mock | ||
from omegaconf import OmegaConf | ||
from stac_mjx import utils | ||
|
||
|
||
@pytest.fixture | ||
def mock_omegaconf_load(monkeypatch): | ||
mock = Mock( | ||
side_effect=[ | ||
OmegaConf.create({"model": "config"}), | ||
OmegaConf.create({"stac": "config"}), | ||
] | ||
) | ||
monkeypatch.setattr(OmegaConf, "load", mock) | ||
return mock | ||
|
||
|
||
@pytest.fixture | ||
def mock_init_params(monkeypatch): | ||
mock = Mock() | ||
monkeypatch.setattr(utils, "init_params", mock) | ||
return mock |
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