Skip to content

Commit 80ccbbc

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 fd94377 commit 80ccbbc

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
@@ -143,9 +143,7 @@ def test_template_module_config_variable() -> None:
143143
template_path = (
144144
Path(__file__).parent.parent.parent.parent / "services" / "api" / "src" / "byte_api" / "lib" / "template.py"
145145
)
146-
with open(template_path) as f:
147-
content = f.read()
148-
146+
content = Path(template_path).read_text()
149147
# Should define config
150148
assert "config = " in content or "config=" in content
151149

0 commit comments

Comments
 (0)