Debian Codegraph @

test/units/ansible_test/conftest.py

raw
1 from __future__ import annotations
2
3
4 import os
5 import pytest
6 import sys
7
8
9 @pytest.fixture(autouse=True, scope='session')
10 def inject_ansible_test():
11 """Make ansible_test available on `sys.path` for unit testing ansible-test."""
12 test_lib = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'lib')
13 sys.path.insert(0, test_lib)