Skip to content

Commit 54a49d9

Browse files
committed
Update tests
1 parent 34a33ba commit 54a49d9

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dependencies = [
3838
"defopt>=7.0.0",
3939
"email_validator",
4040
"hdx-python-country>=3.9.8",
41-
"hdx-python-utilities>=3.9.7",
41+
"hdx-python-utilities>=3.9.9",
4242
"libhxl>=5.2.2",
4343
"makefun",
4444
"quantulum3",

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ frictionless==5.18.1
5656
# via hdx-python-utilities
5757
ghp-import==2.1.0
5858
# via mkdocs
59-
google-auth==2.45.0
59+
google-auth==2.46.0
6060
# via
6161
# google-auth-oauthlib
6262
# gspread
@@ -66,7 +66,7 @@ gspread==6.2.1
6666
# via hdx-python-api (pyproject.toml)
6767
hdx-python-country==3.9.8
6868
# via hdx-python-api (pyproject.toml)
69-
hdx-python-utilities==3.9.7
69+
hdx-python-utilities==3.9.9
7070
# via
7171
# hdx-python-api (pyproject.toml)
7272
# hdx-python-country
@@ -117,7 +117,7 @@ markdown==3.10
117117
# pymdown-extensions
118118
markdown-it-py==4.0.0
119119
# via rich
120-
marko==2.2.1
120+
marko==2.2.2
121121
# via frictionless
122122
markupsafe==3.0.3
123123
# via

tests/hdx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def dataset_mockshow(url, datadict):
299299
# test existing size and hash same
300300
resource = resultdictcopy["resources"][0]
301301
resource["size"] = 23724
302-
resource["hash"] = "6b8acf7e28d62685a1e829e7fa220d17"
302+
resource["hash"] = "b2f92ef4b1c895568421cb887859a13d"
303303
result = json.dumps(resultdictcopy)
304304
return MockResponse(
305305
200,

tests/hdx/data/test_dataset_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ def test_update_in_hdx(self, configuration, post_update, date_pattern, test_xlsx
774774
assert len(dataset._resources) == 3
775775
result = dataset.get_resource()
776776
assert result["size"] == 23724
777-
assert result["hash"] == "6b8acf7e28d62685a1e829e7fa220d17"
777+
assert result["hash"] == "b2f92ef4b1c895568421cb887859a13d"
778778
assert statuses == {"Resource1": 2, "Resource2": 1, "Resource3": 1}
779779
resource["name"] = "123"
780780
resource.set_file_to_upload(None)
@@ -848,7 +848,7 @@ def test_update_in_hdx(self, configuration, post_update, date_pattern, test_xlsx
848848
}
849849
result = dataset.get_resource(2)
850850
assert result["size"] == 23724
851-
assert result["hash"] == "6b8acf7e28d62685a1e829e7fa220d17"
851+
assert result["hash"] == "b2f92ef4b1c895568421cb887859a13d"
852852
assert dataset["state"] == "active"
853853
assert len(dataset._resources) == 3
854854
dataset = Dataset(datasetdata)

tests/hdx/data/test_update_dataset_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def test_dataset_update_resources_position(
326326
{
327327
"description": "test2",
328328
"format": "xlsx",
329-
"hash": "6b8acf7e28d62685a1e829e7fa220d17",
329+
"hash": "b2f92ef4b1c895568421cb887859a13d",
330330
"name": "test2",
331331
"resource_type": "file.upload",
332332
"size": 23724,

0 commit comments

Comments
 (0)