Adapt lg_has calls to new standard

This commit is contained in:
Matthias 2019-08-18 15:09:44 +02:00
parent 0a478bc0dc
commit acf1e734ec
2 changed files with 2 additions and 2 deletions

View File

@ -632,7 +632,7 @@ def test_create_userdata_dir(mocker, default_conf, caplog) -> None:
x = create_userdata_dir('/tmp/bar', create_dir=True)
assert md.call_count == 7
assert md.call_args[1]['parents'] is False
assert log_has('Created user-data directory: /tmp/bar', caplog.record_tuples)
assert log_has('Created user-data directory: /tmp/bar', caplog)
assert isinstance(x, Path)
assert str(x) == "/tmp/bar"

View File

@ -53,7 +53,7 @@ def test_create_datadir_failed(caplog):
]
with pytest.raises(SystemExit):
start_create_userdir(get_args(args))
assert log_has("`create-userdir` requires --userdir to be set.", caplog.record_tuples)
assert log_has("`create-userdir` requires --userdir to be set.", caplog)
def test_create_datadir(caplog, mocker):