Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:

- name: Run tests
run: |
python -W once -m testtools.run testscenarios.tests.test_suite
python -W once -m testtools.run testscenarios.test_suite

success:
needs: ["lint", "test"]
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ check:
clean:
find . -name '*.pyc' -print0 | xargs -0 rm -f

TAGS: testscenarios/*.py testscenarios/tests/*.py
ctags -e -R testscenarios/
TAGS: testscenarios/*.py tests/*.py
ctags -e -R testscenarios/ tests/

tags: testscenarios/*.py testscenarios/tests/*.py
ctags -R testscenarios/
tags: testscenarios/*.py tests/*.py
ctags -R testscenarios/ tests/

.PHONY: all check
10 changes: 10 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ testscenarios release notes
IN DEVELOPMENT
~~~~~~~~~~~~~~

CHANGES
-------

* The test suite has moved from ``testscenarios/tests`` to a top-level
``tests`` directory, so it is no longer installed as part of the wheel.
(#28)

* Require testtools >= 2.8.7, the first release in which ``iterate_tests``
again accepts plain lists.

0.6.1
~~~~~

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
testtools
testtools >= 2.8.7
4 changes: 2 additions & 2 deletions testscenarios/tests/__init__.py → tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def load_tests(loader, standard_tests, pattern):
"testcase",
"scenarios",
]
prefix = "testscenarios.tests.test_"
prefix = "tests.test_"
test_mod_names = [prefix + test_module for test_module in test_modules]
standard_tests.addTests(loader.loadTestsFromNames(test_mod_names))
doctest.set_unittest_reportflags(doctest.REPORT_ONLY_FIRST_FAILURE)
standard_tests.addTest(
doctest.DocFileSuite("../../README.rst", optionflags=doctest.ELLIPSIS)
doctest.DocFileSuite("../README.rst", optionflags=doctest.ELLIPSIS)
)
return loader.suiteClass(testscenarios.generate_scenarios(standard_tests))
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions testscenarios/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@


def test_suite():
import testscenarios.tests # noqa: F401
import tests # noqa: F401

return testscenarios.tests.test_suite()
return tests.test_suite()


def load_tests(loader, standard_tests, pattern):
standard_tests.addTests(loader.loadTestsFromNames(["testscenarios.tests"]))
standard_tests.addTests(loader.loadTestsFromNames(["tests"]))
return standard_tests


Expand Down