mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-06-06 13:49:44 +00:00
Fixes this test so it works regardless of cwd
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
_SRC_DIR = Path(__file__).parent.parent.parent
|
||||
|
||||
|
||||
class TestLazyAiImports:
|
||||
@@ -17,6 +20,6 @@ class TestLazyAiImports:
|
||||
[sys.executable, "-c", code],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
cwd="src",
|
||||
cwd=_SRC_DIR,
|
||||
)
|
||||
assert result.returncode == 0, result.stdout + result.stderr
|
||||
|
||||
Reference in New Issue
Block a user