diff options
author | Florian Bruhin <git@the-compiler.org> | 2018-02-20 17:55:40 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2018-02-20 17:56:47 +0100 |
commit | a3dfec20c18c87da8f49c991bb24c8953ce15730 (patch) | |
tree | 597e4915666088465b6d1e3a4ac179af0a2a2379 /tests/unit/config/test_configcommands.py | |
parent | f8b1e7739da4253fd2bba3efe1d430b86eeffc4f (diff) | |
download | qutebrowser-a3dfec20c18c87da8f49c991bb24c8953ce15730.tar.gz qutebrowser-a3dfec20c18c87da8f49c991bb24c8953ce15730.zip |
Rename --url to --pattern
Diffstat (limited to 'tests/unit/config/test_configcommands.py')
-rw-r--r-- | tests/unit/config/test_configcommands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/config/test_configcommands.py b/tests/unit/config/test_configcommands.py index 5da8d36d1..8d48c94f2 100644 --- a/tests/unit/config/test_configcommands.py +++ b/tests/unit/config/test_configcommands.py @@ -90,7 +90,7 @@ class TestSet: monkeypatch.setattr(objects, 'backend', usertypes.Backend.QtWebKit) option = 'content.javascript.enabled' - commands.set(0, option, 'false', url='*://example.com') + commands.set(0, option, 'false', pattern='*://example.com') pattern = urlmatch.UrlPattern('*://example.com') assert config_stub.get(option) @@ -102,7 +102,7 @@ class TestSet: with pytest.raises(cmdexc.CommandError, match='Error while parsing :/: No scheme given'): - commands.set(0, option, 'false', url=':/') + commands.set(0, option, 'false', pattern=':/') @pytest.mark.parametrize('temp', [True, False]) def test_set_temp_override(self, commands, config_stub, yaml_value, temp): |