Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKallekleiv committed Sep 2, 2024
1 parent 85cf93c commit 073a8b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion backend_py/primary/primary/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
SMDA_RESOURCE_SCOPE = os.environ["WEBVIZ_SMDA_RESOURCE_SCOPE"]
ENTERPRISE_SUBSCRIPTION_KEY = os.environ["WEBVIZ_ENTERPRISE_SUBSCRIPTION_KEY"]
SSDL_RESOURCE_SCOPE = os.environ["WEBVIZ_SSDL_RESOURCE_SCOPE"]
SUMO_ENV = os.getenv("WEBVIZ_SUMO_ENV", "prod")
# SUMO_ENV = os.getenv("WEBVIZ_SUMO_ENV", "prod")
SUMO_ENV ="prod"
GRAPH_SCOPES = ["User.Read", "User.ReadBasic.All"]
VDS_HOST_ADDRESS = os.environ["WEBVIZ_VDS_HOST_ADDRESS"]

Expand Down
5 changes: 3 additions & 2 deletions backend_py/primary/tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ def fixture_sumo_test_ensemble_ahm() -> SumoTestEnsemble:
@pytest.fixture(name="test_user")
def fixture_test_user():
# Get tokens from environment variables
token = os.getenv("SUMO_TOKEN")
# token = os.getenv("SUMO_TOKEN")
token = None
if token is None:
client = SumoClient(env="prod")
client = SumoClient(env="prod", token=token)
token = client.authenticate()
tokens = AccessTokens(sumo_access_token=token)

Expand Down

0 comments on commit 073a8b2

Please sign in to comment.