Skip to content

Commit 99b44e2

Browse files
Update tests/unit/api/test_template_isolated.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 4a912aa commit 99b44e2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/unit/api/test_template_isolated.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ def test_template_module_imports() -> None:
127127
template_path = (
128128
Path(__file__).parent.parent.parent.parent / "services" / "api" / "src" / "byte_api" / "lib" / "template.py"
129129
)
130-
with open(template_path) as f:
131-
content = f.read()
132-
130+
content = Path(template_path).read_text()
133131
# Should import TemplateConfig
134132
assert "TemplateConfig" in content
135133
# Should import from settings

0 commit comments

Comments
 (0)