Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
foolcage committed Dec 26, 2021
1 parent 492247b commit 054bf8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-
import os
import sys

os.environ.setdefault("TESTING_ZVT", "True")
os.environ.setdefault("SQLALCHEMY_WARN_20", "1")

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../src")))
2 changes: 1 addition & 1 deletion tests/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ def init_test_context():
import os
import sys

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../src")))

0 comments on commit 054bf8a

Please sign in to comment.