tests: parse query string to check if parameter is not present (#50467)
This commit is contained in:
parent
e346565ab7
commit
6b0b6509b1
|
@ -1,4 +1,5 @@
|
||||||
import json
|
import json
|
||||||
|
import urllib.parse
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1266,7 +1267,8 @@ def test_chartng_cell_new_api_filter_params(new_api_statistics, nocache, freezer
|
||||||
cell.save()
|
cell.save()
|
||||||
chart = cell.get_chart()
|
chart = cell.get_chart()
|
||||||
request = new_api_mock.call['requests'][3]
|
request = new_api_mock.call['requests'][3]
|
||||||
assert 'start' not in request.url and 'end' not in request.url
|
assert 'start' not in urllib.parse.parse_qs(urllib.parse.urlparse(request.url).query)
|
||||||
|
assert 'end' not in urllib.parse.parse_qs(urllib.parse.urlparse(request.url).query)
|
||||||
|
|
||||||
cell.time_range_start = '2020-10-01'
|
cell.time_range_start = '2020-10-01'
|
||||||
cell.save()
|
cell.save()
|
||||||
|
|
Loading…
Reference in New Issue