Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix odd indent
  • Loading branch information
maurycy committed Sep 22, 2025
commit 24846a8036038d6a717ca4f01b3165ccb66b5f2a
18 changes: 9 additions & 9 deletions pyperformance/tests/test_pyproject_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,23 @@ def test_parse_full_valid_project_section(self):
def test_parse_fails_on_missing_name(self):
with tempfile.TemporaryDirectory() as tmpdir:
toml_content = """
[project]
version = "1.0"
"""
[project]
version = "1.0"
"""

with self.assertRaisesRegex(ValueError, r'missing required "name" field'):
_pyproject_toml.parse_pyproject_toml(toml_content, rootdir=str(tmpdir))

def test_parse_fails_on_unsupported_section(self):
with tempfile.TemporaryDirectory() as tmpdir:
toml_content = """
[project]
name = "my-test-bench"
version = "1.0"
[project]
name = "my-test-bench"
version = "1.0"

[foobar]
key = "value"
"""
[foobar]
key = "value"
"""

with self.assertRaisesRegex(ValueError, "unsupported sections"):
_pyproject_toml.parse_pyproject_toml(toml_content, rootdir=str(tmpdir))
Expand Down
Loading