File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -46,23 +46,23 @@ def test_parse_full_valid_project_section(self):
46
46
def test_parse_fails_on_missing_name(self):
47
47
with tempfile.TemporaryDirectory() as tmpdir:
48
48
toml_content = """
49
- [project]
50
- version = "1.0"
51
- """
49
+ [project]
50
+ version = "1.0"
51
+ """
52
52
53
53
with self.assertRaisesRegex(ValueError, r'missing required "name" field'):
54
54
_pyproject_toml.parse_pyproject_toml(toml_content, rootdir=str(tmpdir))
55
55
56
56
def test_parse_fails_on_unsupported_section(self):
57
57
with tempfile.TemporaryDirectory() as tmpdir:
58
58
toml_content = """
59
- [project]
60
- name = "my-test-bench"
61
- version = "1.0"
59
+ [project]
60
+ name = "my-test-bench"
61
+ version = "1.0"
62
62
63
- [foobar]
64
- key = "value"
65
- """
63
+ [foobar]
64
+ key = "value"
65
+ """
66
66
67
67
with self.assertRaisesRegex(ValueError, "unsupported sections"):
68
68
_pyproject_toml.parse_pyproject_toml(toml_content, rootdir=str(tmpdir))
You can’t perform that action at this time.
0 commit comments