Skip to content

Commit

Permalink
fetch url from env
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Dec 2, 2023
1 parent 574d405 commit 039f572
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ def native_api(monkeypatch):
Api object.
"""
monkeypatch.setenv("BASE_URL", "https://demo.dataverse.org")
return NativeApi(os.getenv("BASE_URL"))

BASE_URL = os.getenv("BASE_URL")

monkeypatch.setenv("BASE_URL", BASE_URL)
return NativeApi(BASE_URL)


def import_dataverse_min_dict():
Expand Down Expand Up @@ -132,7 +135,10 @@ def import_datafile_min_dict():
Minimum Datafile metadata.
"""
return {"pid": "doi:10.11587/EVMUHP", "filename": "tests/data/datafile.txt"}
return {
"pid": "doi:10.11587/EVMUHP",
"filename": "tests/data/datafile.txt",
}


def import_datafile_full_dict():
Expand Down

0 comments on commit 039f572

Please sign in to comment.