mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-06-25 03:38:59 +02:00
Optimized test
This commit is contained in:
parent
fa3636cf26
commit
9000972de6
@ -2,9 +2,12 @@ import pytest
|
|||||||
import sys, os
|
import sys, os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
# 1) Add project root (two levels up) so 'cli' is on the path
|
sys.path.insert(
|
||||||
PROJECT_ROOT = Path(__file__).parent.parent.parent.resolve()
|
0,
|
||||||
sys.path.insert(0, str(PROJECT_ROOT))
|
os.path.abspath(
|
||||||
|
os.path.join(os.path.dirname(__file__), "../../cli")
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
# 2) Import from the cli package
|
# 2) Import from the cli package
|
||||||
import cli.create_credentials as gvc
|
import cli.create_credentials as gvc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user