diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-05-05 18:37:03 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-05-05 18:37:03 +0200 |
commit | 152d789a034c1818098982688ee73579cee5abcd (patch) | |
tree | b4278286128921b6bb30a1fa949d763e54280832 /tests/unit/config/test_configcommands.py | |
parent | 1b7946ed14b386a24db050f2d6dba81ba6518755 (diff) | |
download | qutebrowser-152d789a034c1818098982688ee73579cee5abcd.tar.gz qutebrowser-152d789a034c1818098982688ee73579cee5abcd.zip |
Add :config-diff command
Diffstat (limited to 'tests/unit/config/test_configcommands.py')
-rw-r--r-- | tests/unit/config/test_configcommands.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/unit/config/test_configcommands.py b/tests/unit/config/test_configcommands.py index f1479bda1..b793a49ce 100644 --- a/tests/unit/config/test_configcommands.py +++ b/tests/unit/config/test_configcommands.py @@ -212,6 +212,16 @@ class TestSet: commands.set(win_id=0, option='foo?') +@pytest.mark.parametrize('old', [True, False]) +def test_diff(commands, tabbed_browser_stubs, old): + """Run ':config-diff'. + + Should open qute://configdiff.""" + commands.config_diff(win_id=0, old=old) + url = QUrl('qute://configdiff/old') if old else QUrl('qute://configdiff') + assert tabbed_browser_stubs[0].loaded_url == url + + class TestCycle: """Test :config-cycle.""" |