anki/qt/tests/run_pytest.py

20 lines
458 B
Python
Raw Normal View History

2021-04-13 10:45:05 +02:00
# 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]))