Skip to content

Commit

Permalink
fix type to format change
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelduchesne committed Oct 25, 2024
1 parent 688ee59 commit 834cf98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_dataportals.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def test_download_and_load_bld_window(config):


def test_statcan(config):
data = {"type": "json", "lang": "E", "dguid": "2016A000011124", "topic": 5, "notes": 0}
data = {"response_format": "json", "lang": "E", "dguid": "2016A000011124", "topic": 5, "notes": 0}
response = dataportal.stat_can_request(**data)
print(response)

Expand All @@ -230,7 +230,7 @@ def test_statcan(config):

def test_statcan_error(config):
# Tests statcan with error in inputs
data = {"type": "json", "lang": "E", "dguid": "wrong_string", "topic": 5, "notes": 0}
data = {"response_format": "json", "lang": "E", "dguid": "wrong_string", "topic": 5, "notes": 0}
response = dataportal.stat_can_request(**data)
print(response)

Expand All @@ -239,7 +239,7 @@ def test_statcan_error(config):


def test_statcan_geo(config):
data = {"type": "json", "lang": "E", "geos": "PR", "cpt": "00"}
data = {"response_format": "json", "lang": "E", "geos": "PR", "cpt": "00"}
response = dataportal.stat_can_geo_request(**data)
print(response)

Expand All @@ -249,7 +249,7 @@ def test_statcan_geo(config):

def test_statcan_geo_error(config):
# Tests statcan_geo with error in inputs
data = {"type": "json", "lang": "E", "geos": "wrong_string", "cpt": "00"}
data = {"response_format": "json", "lang": "E", "geos": "wrong_string", "cpt": "00"}
response = dataportal.stat_can_geo_request(**data)
print(response)

Expand Down

0 comments on commit 834cf98

Please sign in to comment.