Skip to content

Commit 4a912aa

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 80ccbbc commit 4a912aa

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
@@ -117,9 +117,7 @@ def test_template_module_docstring() -> None:
117117
template_path = (
118118
Path(__file__).parent.parent.parent.parent / "services" / "api" / "src" / "byte_api" / "lib" / "template.py"
119119
)
120-
with open(template_path) as f:
121-
content = f.read()
122-
120+
content = Path(template_path).read_text()
123121
# Should have module docstring
124122
assert '"""' in content or "'''" in content
125123

0 commit comments

Comments
 (0)