Skip to content

Commit 48b310c

Browse files
authored
Merge pull request #29 from testing-cabal/move-tests
Move tests to root
2 parents 66327cb + 47910e6 commit 48b310c

8 files changed

Lines changed: 21 additions & 11 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
6767
- name: Run tests
6868
run: |
69-
python -W once -m testtools.run testscenarios.tests.test_suite
69+
python -W once -m testtools.run testscenarios.test_suite
7070
7171
success:
7272
needs: ["lint", "test"]

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ check:
1010
clean:
1111
find . -name '*.pyc' -print0 | xargs -0 rm -f
1212

13-
TAGS: testscenarios/*.py testscenarios/tests/*.py
14-
ctags -e -R testscenarios/
13+
TAGS: testscenarios/*.py tests/*.py
14+
ctags -e -R testscenarios/ tests/
1515

16-
tags: testscenarios/*.py testscenarios/tests/*.py
17-
ctags -R testscenarios/
16+
tags: testscenarios/*.py tests/*.py
17+
ctags -R testscenarios/ tests/
1818

1919
.PHONY: all check

NEWS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ testscenarios release notes
55
IN DEVELOPMENT
66
~~~~~~~~~~~~~~
77

8+
CHANGES
9+
-------
10+
11+
* The test suite has moved from ``testscenarios/tests`` to a top-level
12+
``tests`` directory, so it is no longer installed as part of the wheel.
13+
(#28)
14+
15+
* Require testtools >= 2.8.7, the first release in which ``iterate_tests``
16+
again accepts plain lists.
17+
818
0.6.1
919
~~~~~
1020

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
testtools
1+
testtools >= 2.8.7
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ def load_tests(loader, standard_tests, pattern):
3131
"testcase",
3232
"scenarios",
3333
]
34-
prefix = "testscenarios.tests.test_"
34+
prefix = "tests.test_"
3535
test_mod_names = [prefix + test_module for test_module in test_modules]
3636
standard_tests.addTests(loader.loadTestsFromNames(test_mod_names))
3737
doctest.set_unittest_reportflags(doctest.REPORT_ONLY_FIRST_FAILURE)
3838
standard_tests.addTest(
39-
doctest.DocFileSuite("../../README.rst", optionflags=doctest.ELLIPSIS)
39+
doctest.DocFileSuite("../README.rst", optionflags=doctest.ELLIPSIS)
4040
)
4141
return loader.suiteClass(testscenarios.generate_scenarios(standard_tests))

testscenarios/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@
5252

5353

5454
def test_suite():
55-
import testscenarios.tests # noqa: F401
55+
import tests # noqa: F401
5656

57-
return testscenarios.tests.test_suite()
57+
return tests.test_suite()
5858

5959

6060
def load_tests(loader, standard_tests, pattern):
61-
standard_tests.addTests(loader.loadTestsFromNames(["testscenarios.tests"]))
61+
standard_tests.addTests(loader.loadTestsFromNames(["tests"]))
6262
return standard_tests
6363

6464

0 commit comments

Comments
 (0)