diff --git a/tests/test_dataviz.py b/tests/test_dataviz.py index 2d3a5dd7..497a29b3 100644 --- a/tests/test_dataviz.py +++ b/tests/test_dataviz.py @@ -1,4 +1,5 @@ import json +import urllib.parse import mock import pytest @@ -1266,7 +1267,8 @@ def test_chartng_cell_new_api_filter_params(new_api_statistics, nocache, freezer cell.save() chart = cell.get_chart() 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.save()