fix default test runner from setuptools (#345)

This commit is contained in:
Tom Kralidis
2020-01-16 21:13:09 -05:00
committed by GitHub
parent 01122e7318
commit 33a59b87cc
+1 -3
View File
@@ -32,7 +32,6 @@ import os
import re
from setuptools import Command, find_packages, setup
import shutil
import sys
class PyCleanBuild(Command):
@@ -85,8 +84,7 @@ class PyTest(Command):
def run(self):
import subprocess
errno = subprocess.call([sys.executable,
'pygeoapi/tests/run_tests.py'])
errno = subprocess.call(['pytest', 'tests/test_api.py'])
raise SystemExit(errno)