[PATCH 1 of 2 Relationwidget cube] [tox] remove py27 env, update configuration

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 10:08:50 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585728430 0
#      Wed Apr 01 08:07:10 2020 +0000
# Node ID 9f26b8453a4a68bf4e2c0664a5545f28537bb1ca
# Parent  0844eb62852f03ab9456ee10db8676134ff94206
[tox] remove py27 env, update configuration

diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,11 @@
 [tox]
-envlist = py27,py3,check-manifest,flake8
+envlist = py3,check-manifest,flake8
 
 [testenv]
+deps =
+  pytest
 commands =
-  {envpython} -m unittest discover -s test -p "*test_*.py"
+  {envpython} -m pytest {posargs}
 
 [testenv:flake8]
 basepython = python3
@@ -11,7 +13,7 @@
 deps =
   flake8
 commands =
-  {envpython} -m flake8 {toxinidir}
+  {envpython} -m flake8 {toxinidir} {posargs}
 
 [testenv:check-manifest]
 skip_install = true
@@ -22,3 +24,9 @@
 
 [flake8]
 max-line-length = 100
+exclude = cubicweb_file/migration/*,.tox/*,.eggs/*
+
+[pytest]
+python_files = *test_*.py
+testpaths = test
+addopts = -r fEs




More information about the cubicweb-devel mailing list