From 33a59b87cc7eda7eca6fe1ade567ee676aba35d2 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Thu, 16 Jan 2020 21:13:09 -0500 Subject: [PATCH] fix default test runner from setuptools (#345) --- setup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 30c71fd..93f1de7 100644 --- a/setup.py +++ b/setup.py @@ -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)