Facets can now be toggled off again, refs #255

This commit is contained in:
Simon Willison 2018-05-15 07:11:52 -03:00 committed by Simon Willison
commit 1dc94f6eaa
4 changed files with 13 additions and 3 deletions

View file

@ -51,6 +51,7 @@ def test_path_with_added_args(path, added_args, expected):
@pytest.mark.parametrize('path,args,expected', [
('/foo?bar=1', {'bar'}, '/foo'),
('/foo?bar=1&baz=2', {'bar'}, '/foo?baz=2'),
('/foo?bar=1&bar=2&bar=3', {'bar': '2'}, '/foo?bar=1&bar=3'),
])
def test_path_with_removed_args(path, args, expected):
request = Request(