Skip to content

Commit a72a7fc

Browse files
author
Paul Duncan
committed
test_search_event_result_set modified
1 parent 0cf43f8 commit a72a7fc

File tree

3 files changed

+429
-5353
lines changed

3 files changed

+429
-5353
lines changed

tests/endpoints/v1/test_saved_locations.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_search_params(self, client):
4545
def test_create(self, client):
4646
result = client.saved_locations.create(
4747
name="name",
48-
location_code="4t855453234t5623",
48+
location_code="some_location_code",
4949
description="saved location description",
5050
labels=["test", "retail"],
5151
geojson={
@@ -84,7 +84,7 @@ def test_create(self, client):
8484
"type": "Polygon",
8585
},
8686
},
87-
"location_code": "4t855453234t5623",
87+
"location_code": "some_location_code",
8888
"description": "saved location description",
8989
"place_ids": ["5391959", "5391960"],
9090
"formatted_address": "formatted_address",
@@ -99,7 +99,7 @@ def test_replace(self, client):
9999
client.saved_locations.replace_location_data(
100100
location_id="abc123",
101101
name="name",
102-
location_code="4t855453234t5623",
102+
location_code="some_location_code",
103103
description="saved location description",
104104
labels=["test", "retail"],
105105
geojson={
@@ -138,7 +138,7 @@ def test_replace(self, client):
138138
"type": "Polygon",
139139
},
140140
},
141-
"location_code": "4t855453234t5623",
141+
"location_code": "some_location_code",
142142
"description": "saved location description",
143143
"place_ids": ["5391959", "5391960"],
144144
"formatted_address": "formatted_address",
@@ -195,11 +195,10 @@ def test_get_location(self, client):
195195
@with_mock_client(request_returns=load_fixture("requests_responses/saved_locations_test/test_event_result_set"))
196196
def test_search_event_result_set(self, client):
197197
result = client.saved_locations.search_event_result_set(
198-
updated__gt="2016-03-01",
199-
updated__gte="2016-03-01",
200-
updated__lt="2016-04-01",
201-
updated__lte="2016-04-01",
202-
location_id="yfQpe0p43Q5Clkqdei6n_g",
198+
location_id="some_location_id_here",
199+
date_range_type="next_90d",
200+
category="concerts,community",
201+
limit=3,
203202
)
204203

205204
assert isinstance(result, EventResultSet)

0 commit comments

Comments
 (0)