Adapt lg_has calls to new standard
This commit is contained in:
parent
0a478bc0dc
commit
acf1e734ec
@ -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"
|
||||
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user