Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

TST: add script to run tests #49

Merged
merged 3 commits into from
Apr 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions runtests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python
import os
import subprocess
import sys

import pytest

STUBS_ROOT = os.path.dirname(os.path.abspath(__file__))


def main():
subprocess.run(
[sys.executable, '-m', 'pip', 'install', STUBS_ROOT],
capture_output=True,
check=True,
)
sys.exit(pytest.main([STUBS_ROOT] + sys.argv[1:]))


if __name__ == '__main__':
main()