aboutsummaryrefslogtreecommitdiff
path: root/tests/errors
diff options
context:
space:
mode:
authornatsuoto <[email protected]>2026-07-10 16:56:03 +0530
committernatsuoto <[email protected]>2026-07-10 16:56:03 +0530
commit174eb521850550830d97994719ca3d09c467cb5a (patch)
tree8db00421de426b98a86d4b65665c71be7adcf0bf /tests/errors
parent6f27b88358e5760cdd034a77a61de7a32e77c425 (diff)
downloadedify-174eb521850550830d97994719ca3d09c467cb5a.tar.xz
edify-174eb521850550830d97994719ca3d09c467cb5a.zip
chore: apply ruff format and drop unused import in new context tests
Diffstat (limited to 'tests/errors')
-rw-r--r--tests/errors/context.test.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/errors/context.test.py b/tests/errors/context.test.py
index 3b54605..fff9e09 100644
--- a/tests/errors/context.test.py
+++ b/tests/errors/context.test.py
@@ -1,6 +1,5 @@
"""Tests for the caller-source-location capture helpers in :mod:`edify.errors.context`."""
-from types import SimpleNamespace
from unittest import mock
from edify.errors.context import (
@@ -37,9 +36,7 @@ class _FakeFrame:
def test_capture_caller_context_returns_none_when_every_frame_is_inside_edify():
- with mock.patch(
- "edify.errors.context.sys._getframe", return_value=None
- ):
+ with mock.patch("edify.errors.context.sys._getframe", return_value=None):
assert capture_caller_context() is None
@@ -105,8 +102,6 @@ def test_context_for_frame_defaults_end_col_when_position_end_col_is_none():
def test_caller_context_dataclass_is_frozen_and_holds_all_five_fields():
- context = CallerContext(
- filename="a.py", lineno=1, colno=1, end_colno=5, source_line="x = 1"
- )
+ context = CallerContext(filename="a.py", lineno=1, colno=1, end_colno=5, source_line="x = 1")
assert context.filename == "a.py"
assert context.source_line == "x = 1"