Skip to content

Commit

Permalink
check dv version env
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Dec 2, 2023
1 parent 2ef5ca7 commit fb8830e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/scripts/test_dataverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ def test_info(self):
code is 200 and the 'status' field in the response JSON is 'OK'.
"""

DV_VERSION = os.getenv("DV_VERSION")
url = self.construct_url("api/info/version")
response = requests.get(url)

assert response.status_code == 200, response.text
assert response.json()["status"] == "OK"
assert response.json()["data"]["version"] == DV_VERSION

def test_metadatablocks(self):
"""
Expand Down

0 comments on commit fb8830e

Please sign in to comment.