From c1732b845348763cd514721126fc05e1531e44f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20F=C3=A9rotin?= Date: Fri, 6 May 2016 19:45:32 +0200 Subject: scaffolds: Allow `py.test` to be run on new project without specifying test module path. --- pyramid/scaffolds/alchemy/+dot+coveragerc_tmpl | 3 +++ pyramid/scaffolds/alchemy/pytest.ini_tmpl | 3 +++ pyramid/scaffolds/starter/+dot+coveragerc_tmpl | 3 +++ pyramid/scaffolds/starter/pytest.ini_tmpl | 3 +++ pyramid/scaffolds/zodb/+dot+coveragerc_tmpl | 3 +++ pyramid/scaffolds/zodb/pytest.ini_tmpl | 3 +++ 6 files changed, 18 insertions(+) create mode 100644 pyramid/scaffolds/alchemy/+dot+coveragerc_tmpl create mode 100644 pyramid/scaffolds/alchemy/pytest.ini_tmpl create mode 100644 pyramid/scaffolds/starter/+dot+coveragerc_tmpl create mode 100644 pyramid/scaffolds/starter/pytest.ini_tmpl create mode 100644 pyramid/scaffolds/zodb/+dot+coveragerc_tmpl create mode 100644 pyramid/scaffolds/zodb/pytest.ini_tmpl diff --git a/pyramid/scaffolds/alchemy/+dot+coveragerc_tmpl b/pyramid/scaffolds/alchemy/+dot+coveragerc_tmpl new file mode 100644 index 000000000..273a4a580 --- /dev/null +++ b/pyramid/scaffolds/alchemy/+dot+coveragerc_tmpl @@ -0,0 +1,3 @@ +[run] +source = {{package}} +omit = {{package}}/test* diff --git a/pyramid/scaffolds/alchemy/pytest.ini_tmpl b/pyramid/scaffolds/alchemy/pytest.ini_tmpl new file mode 100644 index 000000000..a30c8bcad --- /dev/null +++ b/pyramid/scaffolds/alchemy/pytest.ini_tmpl @@ -0,0 +1,3 @@ +[pytest] +testpaths = {{package}} +python_files = *.py diff --git a/pyramid/scaffolds/starter/+dot+coveragerc_tmpl b/pyramid/scaffolds/starter/+dot+coveragerc_tmpl new file mode 100644 index 000000000..273a4a580 --- /dev/null +++ b/pyramid/scaffolds/starter/+dot+coveragerc_tmpl @@ -0,0 +1,3 @@ +[run] +source = {{package}} +omit = {{package}}/test* diff --git a/pyramid/scaffolds/starter/pytest.ini_tmpl b/pyramid/scaffolds/starter/pytest.ini_tmpl new file mode 100644 index 000000000..a30c8bcad --- /dev/null +++ b/pyramid/scaffolds/starter/pytest.ini_tmpl @@ -0,0 +1,3 @@ +[pytest] +testpaths = {{package}} +python_files = *.py diff --git a/pyramid/scaffolds/zodb/+dot+coveragerc_tmpl b/pyramid/scaffolds/zodb/+dot+coveragerc_tmpl new file mode 100644 index 000000000..273a4a580 --- /dev/null +++ b/pyramid/scaffolds/zodb/+dot+coveragerc_tmpl @@ -0,0 +1,3 @@ +[run] +source = {{package}} +omit = {{package}}/test* diff --git a/pyramid/scaffolds/zodb/pytest.ini_tmpl b/pyramid/scaffolds/zodb/pytest.ini_tmpl new file mode 100644 index 000000000..a30c8bcad --- /dev/null +++ b/pyramid/scaffolds/zodb/pytest.ini_tmpl @@ -0,0 +1,3 @@ +[pytest] +testpaths = {{package}} +python_files = *.py -- cgit v1.2.3