We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faaff3c commit 461deb1Copy full SHA for 461deb1
tests/fixtures/utils.py
@@ -10,13 +10,16 @@ def get_workspace_file(
10
"""Return fixture data, relative to __file__"""
11
if isinstance(_file, str):
12
_file = pathlib.Path(_file)
13
+
14
return FIXTURE_PATH / _file
15
16
17
def read_workspace_file(_file: t.Union[pathlib.Path, str]) -> str:
18
19
+ if isinstance(_file, str):
20
+ _file = pathlib.Path(_file)
21
- return open(get_workspace_file(_file)).read()
22
+ return get_workspace_file(_file).open().read()
23
24
25
def write_config(
0 commit comments