Skip to content

Commit 461deb1

Browse files
committed
chore(ruff): Manual fixes fixtures/utils.py
1 parent faaff3c commit 461deb1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/fixtures/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ def get_workspace_file(
1010
"""Return fixture data, relative to __file__"""
1111
if isinstance(_file, str):
1212
_file = pathlib.Path(_file)
13+
1314
return FIXTURE_PATH / _file
1415

1516

1617
def read_workspace_file(_file: t.Union[pathlib.Path, str]) -> str:
1718
"""Return fixture data, relative to __file__"""
19+
if isinstance(_file, str):
20+
_file = pathlib.Path(_file)
1821

19-
return open(get_workspace_file(_file)).read()
22+
return get_workspace_file(_file).open().read()
2023

2124

2225
def write_config(

0 commit comments

Comments
 (0)