kitty/test.py
Kovid Goyal 38992e25d7
Make the tests into a package
Useful to make the tests runnable in a frozen build.
2021-02-19 14:35:25 +05:30

23 lines
401 B
Python
Executable File

#!/usr/bin/env python3
# vim:fileencoding=utf-8
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
import os
import sys
base = os.path.dirname(os.path.abspath(__file__))
def init_env() -> None:
sys.path.insert(0, base)
def main() -> None:
init_env()
from kitty_tests.main import run_tests # type: ignore
run_tests()
if __name__ == '__main__':
main()