Newer
Older
openstack-caracal-dc-dc / tests / dc-dc-prefixes-import / stub_syspath / pynetbox.py
"""Shim so `import pynetbox` resolves to the test-only fake_pynetbox module.

Only exists under tests/dc-dc-prefixes-import/stub_syspath/ so it is never on
PYTHONPATH outside this harness -- it must not be importable as a stand-in
for the real pynetbox package anywhere else in the repo.
"""
import os
import sys

sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from fake_pynetbox import FakeApi, api, Record, Collection  # noqa: F401