Skip to content

Commit

Permalink
[tests] make it easier to run tests (#923)
Browse files Browse the repository at this point in the history
* make it easier to run tests

* cleanup

Co-authored-by: Jeff Rasley <[email protected]>
  • Loading branch information
stas00 and jeffra authored Apr 30, 2021
1 parent c5700bc commit de694b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# tests directory-specific settings - this file is run automatically by pytest before any tests are run

import sys
from os.path import abspath, dirname, join

# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
git_repo_path = abspath(join(dirname(dirname(__file__)), "src"))
sys.path.insert(1, git_repo_path)

0 comments on commit de694b9

Please sign in to comment.