Run editor tests with/without watch=True

This commit is contained in:
Florian Bruhin 2020-07-30 13:30:21 +02:00
parent 0a69ba761a
commit 02a505a55e
1 changed files with 3 additions and 3 deletions

View File

@ -37,9 +37,9 @@ def patch_things(config_stub, monkeypatch, stubs):
stubs.fake_qprocess())
@pytest.fixture
def editor(caplog, qtbot):
ed = editormod.ExternalEditor()
@pytest.fixture(params=[True, False])
def editor(caplog, qtbot, request):
ed = editormod.ExternalEditor(watch=request.param)
yield ed
with caplog.at_level(logging.ERROR):
ed._remove_file = True