Skip to content

Commit

Permalink
Fix #8 conftest.py adds project root to sys.path (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
robnagler authored Mar 18, 2024
1 parent 70c0755 commit 56aeea3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""Set up for chronver tests
:copyright: Copyright (c) 2024 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""

import pytest


@pytest.hookimpl(tryfirst=True)
def pytest_runtest_protocol(*args, **kwargs):
import pathlib, sys

sys.path.insert(0, str(pathlib.Path(__file__).parent.parent))

0 comments on commit 56aeea3

Please sign in to comment.