Voice et bot modif
This commit is contained in:
parent
189d56026b
commit
7333a22bcd
10774 changed files with 634644 additions and 933308 deletions
|
|
@ -286,6 +286,29 @@ class TestClassifiers:
|
|||
assert "classifiers" not in expanded["project"]
|
||||
|
||||
|
||||
class TestImportNames:
|
||||
EXAMPLES = [
|
||||
'import-names = ["hello", "world"]',
|
||||
'import-namespaces = ["hello", "world"]',
|
||||
'dynamic = ["import-names"]',
|
||||
'dynamic = ["import-namespaces"]',
|
||||
]
|
||||
|
||||
@pytest.mark.parametrize("example", EXAMPLES)
|
||||
def test_not_implemented(self, monkeypatch, tmp_path, example):
|
||||
monkeypatch.chdir(tmp_path)
|
||||
pyproject = Path("pyproject.toml")
|
||||
toml_config = f"""
|
||||
[project]
|
||||
name = 'proj'
|
||||
version = '42'
|
||||
{example}
|
||||
"""
|
||||
pyproject.write_text(cleandoc(toml_config), encoding="utf-8")
|
||||
with pytest.raises(NotImplementedError, match='import-names'):
|
||||
apply_configuration(Distribution({}), pyproject)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"example",
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue