From 91f797289b6bb46fa5dbf632634c4b8f46a8a90f Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 30 Jun 2019 10:15:51 -0400 Subject: [PATCH] Use built-in unittest for test execution I like pytest, but I don't think it's necessary for super simple tests. I'd like to avoid the dependency if we don't need it. --- pyproject.toml | 1 - tox.ini | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 09e4dc1..0785d0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,5 +17,4 @@ requires-python = ">=3.4" test = [ "coverage", "flake8", - "pytest" ] diff --git a/tox.ini b/tox.ini index 5b59bfc..9af01e8 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,3 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox" from this directory. - [tox] envlist = py34,py35,py36,37 skipsdist = True @@ -15,6 +10,6 @@ deps = flit commands = flit install - coverage run {envbindir}/pytest {posargs} + coverage run python -m unittest -s tests coverage report py37: flake8