Skip to content

Commit

Permalink
Fix PYTHONPATH for variant test
Browse files Browse the repository at this point in the history
  • Loading branch information
thalassemia committed May 22, 2024
1 parent 205e15f commit 107857f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/create_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ def test_create_variants():
# Create mock sim_data pickle
with open("test_create_variants/kb/simData.cPickle", "wb") as f:
pickle.dump(SimData(), f)
repo_dir = os.path.dirname(os.path.dirname(__file__))
# Test script and config system
os.environ['PYTHONPATH'] = repo_dir
subprocess.run(
[
"python",
Expand All @@ -201,6 +203,7 @@ def test_create_variants():
"test_create_variants/out",
],
check=True,
env=os.environ
)
# Check that metadata aligns with variant sim_data attrs
with open("test_create_variants/out/metadata.json") as f:
Expand Down

0 comments on commit 107857f

Please sign in to comment.