Skip to content
Snippets Groups Projects
Commit 39e79145 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Drop none-valued query parameters by default

parent f7a78116
No related branches found
No related tags found
2 merge requests!50Release 2024.06.03,!46Issue0038
...@@ -27,7 +27,7 @@ def hit_endpoint(method, endpoint, params=None, body=None, drop_none=True): ...@@ -27,7 +27,7 @@ def hit_endpoint(method, endpoint, params=None, body=None, drop_none=True):
if not method in ['GET', 'PUT']: if not method in ['GET', 'PUT']:
raise Exception('Can only handle GET and PUT requests') raise Exception('Can only handle GET and PUT requests')
k_pop = [] k_pop = []
if drop_none: if drop_none and params is not None:
for k, v in params.items(): for k, v in params.items():
if v is None: if v is None:
k_pop.append(k) k_pop.append(k)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment