anki/qt/tests/run_pytest.py
2021-04-13 18:45:35 +10:00

20 lines
458 B
Python

# Copyright: Ankitects Pty Ltd and contributors
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import os
import sys
import pytest
try:
import bazelfixes
bazelfixes.fix_pywin32_in_bazel(force=True)
except ImportError:
pass
if __name__ == "__main__":
print(os.path.dirname(__file__))
folder = os.path.join(os.path.dirname(__file__), "..", "tests")
sys.exit(pytest.main(["--verbose", "-s", folder]))