Skip to content

Commit f95ce3b

Browse files
euri10Kumzyprovinzkraut
authored
test: allow tests to be run regardless of root directory (#4376)
* feat: remove litestar.contrib.attrs (#4322) * test(file-system): Use nginx to test http file system (#4327) * test: allow tests to be run regardless of root directory --------- Co-authored-by: Julien <[email protected]> Co-authored-by: Janek Nouvertné <[email protected]>
1 parent 8837e8a commit f95ce3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_file_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def setup_http_server(
6969
tmp_dir: pathlib.Path,
7070
file_path: pathlib.Path,
7171
) -> Generator[None, None, None]:
72-
server_file_path = pathlib.Path("tests/nginx_test_files").joinpath(file_path.name)
72+
server_file_path = (pathlib.Path(__file__).parent.parent / "nginx_test_files").joinpath(file_path.name)
7373
server_file_path.write_bytes(file_path.read_bytes())
7474
yield
7575
server_file_path.unlink()

0 commit comments

Comments
 (0)