mirror of
https://github.com/copier-org/copier.git
synced 2025-05-05 15:32:54 +00:00
Add test_config_data_empty
This commit is contained in:
parent
45338f68ba
commit
eef2374a1f
@ -1 +0,0 @@
|
||||
%343
|
@ -57,7 +57,6 @@ def test_invalid_yaml(capsys):
|
||||
(
|
||||
("tests/demo_invalid", {"_warning": False}, lambda x: "INVALID" in x),
|
||||
("tests/demo_invalid", {"quiet": True}, lambda x: x == ""),
|
||||
("tests/demo_config_empty", {}, None),
|
||||
),
|
||||
)
|
||||
def test_invalid_config_data(conf_path, flags, check_out, capsys):
|
||||
@ -68,6 +67,11 @@ def test_invalid_config_data(conf_path, flags, check_out, capsys):
|
||||
assert check_out(out)
|
||||
|
||||
|
||||
def test_config_data_empty():
|
||||
data = load_config_data("tests/demo_config_empty")
|
||||
assert data is None
|
||||
|
||||
|
||||
def test_multiple_config_file_error(capsys):
|
||||
with pytest.raises(MultipleConfigFilesError):
|
||||
load_config_data("tests/demo_multi_config", quiet=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user