File: conftest.py

package info (click to toggle)
python-azure 20260203%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 793,600 kB
  • sloc: python: 6,552,618; ansic: 804; javascript: 287; sh: 204; makefile: 198; xml: 109
file content (15 lines) | stat: -rw-r--r-- 381 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""
Pytest configuration and shared fixtures for unit tests.
"""

import sys
from pathlib import Path

# Ensure package sources are importable during tests
tests_root = Path(__file__).resolve()
src_root = tests_root.parents[4]
packages_root = tests_root.parents[2] / "packages"

for path in (packages_root, src_root):
	if str(path) not in sys.path:
		sys.path.insert(0, str(path))