Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit 5a01787

Browse files
tests: fix other test that broke from OpportunityRequest model change
1 parent 8351530 commit 5a01787

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

tests/test_opportunity.py

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,17 @@ def test_search_opportunities_response(
2424
end_string = rfc3339_strftime(end, format)
2525

2626
request_payload = {
27-
"search": {
28-
"geometry": {
29-
"type": "Point",
30-
"coordinates": [0, 0],
31-
},
32-
"datetime": f"{start_string}/{end_string}",
33-
"filter": {
34-
"op": "and",
35-
"args": [
36-
{"op": ">", "args": [{"property": "off_nadir"}, 0]},
37-
{"op": "<", "args": [{"property": "off_nadir"}, 45]},
38-
],
39-
},
27+
"geometry": {
28+
"type": "Point",
29+
"coordinates": [0, 0],
30+
},
31+
"datetime": f"{start_string}/{end_string}",
32+
"filter": {
33+
"op": "and",
34+
"args": [
35+
{"op": ">", "args": [{"property": "off_nadir"}, 0]},
36+
{"op": "<", "args": [{"property": "off_nadir"}, 45]},
37+
],
4038
},
4139
"limit": 10,
4240
}

0 commit comments

Comments
 (0)