Adapt lg_has calls to new standard
This commit is contained in:
		| @@ -632,7 +632,7 @@ def test_create_userdata_dir(mocker, default_conf, caplog) -> None: | |||||||
|     x = create_userdata_dir('/tmp/bar', create_dir=True) |     x = create_userdata_dir('/tmp/bar', create_dir=True) | ||||||
|     assert md.call_count == 7 |     assert md.call_count == 7 | ||||||
|     assert md.call_args[1]['parents'] is False |     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 isinstance(x, Path) | ||||||
|     assert str(x) == "/tmp/bar" |     assert str(x) == "/tmp/bar" | ||||||
|  |  | ||||||
|   | |||||||
| @@ -53,7 +53,7 @@ def test_create_datadir_failed(caplog): | |||||||
|     ] |     ] | ||||||
|     with pytest.raises(SystemExit): |     with pytest.raises(SystemExit): | ||||||
|         start_create_userdir(get_args(args)) |         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): | def test_create_datadir(caplog, mocker): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user