-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e3d2c6
commit 4f90fb1
Showing
7 changed files
with
30 additions
and
25 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
9 changes: 9 additions & 0 deletions
9
backend_py/primary/tests/integration/routers/explore/test_explore.py
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,9 @@ | ||
from primary.routers.explore import router, FieldInfo, CaseInfo,EnsembleInfo, EnsembleDetails | ||
|
||
|
||
|
||
|
||
async def test_get_fields(test_user) -> None: | ||
print(dir(router)) | ||
field_list = await router.get_fields(test_user) | ||
assert isinstance(field_list, list[FieldInfo]) |
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
10 changes: 3 additions & 7 deletions
10
backend_py/primary/tests/integration/routers/timeseries/test_get_vector_list.py
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,16 +1,12 @@ | ||
from primary.routers.timeseries import router | ||
from primary.routers.timeseries import schemas | ||
from sumo.wrapper import SumoClient | ||
|
||
from primary.services.utils.authenticated_user import AuthenticatedUser, AccessTokens | ||
from primary.services.sumo_access.summary_access import SummaryAccess | ||
from fmu.sumo.explorer import Explorer | ||
|
||
async def test_get_vector_list(test_user, sumo_test_ensemble_ahm): | ||
async def test_get_vector_list(test_user, sumo_test_ensemble_prod) -> None: | ||
|
||
vector_list = await router.get_vector_list( | ||
None, test_user, sumo_test_ensemble_ahm.case_uuid, sumo_test_ensemble_ahm.ensemble_name | ||
None, test_user, sumo_test_ensemble_prod.case_uuid, sumo_test_ensemble_prod.ensemble_name | ||
) | ||
|
||
assert len(vector_list) == 786 | ||
assert isinstance(vector_list[0], schemas.VectorDescription) |