diff options
| author | natsuoto <[email protected]> | 2026-07-10 16:27:09 +0530 |
|---|---|---|
| committer | natsuoto <[email protected]> | 2026-07-10 16:27:09 +0530 |
| commit | 329116d9ad0c64db3800ed17ea0530ad68f95d4b (patch) | |
| tree | ae13a1029da843c44093471866deeb008e67d7a4 /tests/errors | |
| parent | 0d029b2fe8426270b232e81778d2d9eff768ae13 (diff) | |
| download | edify-329116d9ad0c64db3800ed17ea0530ad68f95d4b.tar.xz edify-329116d9ad0c64db3800ed17ea0530ad68f95d4b.zip | |
chore: apply ruff lint and format fixes
Diffstat (limited to 'tests/errors')
| -rw-r--r-- | tests/errors/errors.test.py | 6 | ||||
| -rw-r--r-- | tests/errors/formatting.test.py | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/errors/errors.test.py b/tests/errors/errors.test.py index 5b48165..74acaa4 100644 --- a/tests/errors/errors.test.py +++ b/tests/errors/errors.test.py @@ -129,8 +129,10 @@ def test_must_have_a_smaller_value_reports_the_codepoints(): error = MustHaveASmallerValueError("z", "a") text = str(error) assert "range bounds are inverted" in text - assert "'z'" in text and "'a'" in text - assert "= 122" in text and "= 97" in text + assert "'z'" in text + assert "'a'" in text + assert "= 122" in text + assert "= 97" in text def test_must_be_less_than(): diff --git a/tests/errors/formatting.test.py b/tests/errors/formatting.test.py index 8cdf0ab..314aff1 100644 --- a/tests/errors/formatting.test.py +++ b/tests/errors/formatting.test.py @@ -114,9 +114,7 @@ def test_compose_annotated_message_when_caller_context_is_available(): def test_compose_annotated_message_falls_back_when_caller_context_is_none(): - with mock.patch( - "edify.errors.formatting.capture_caller_context", return_value=None - ): + with mock.patch("edify.errors.formatting.capture_caller_context", return_value=None): output = compose_annotated_message( summary="bad thing happened", trigger_hint="here", |
