test_ok1/testing/example_scripts
Bruno Oliveira fd2f172258 Let unittest frameworks deal with async functions
Instead of trying to handle unittest-async functions in pytest_pyfunc_call,
let the unittest framework handle them instead.

This lets us remove the hack in pytest_pyfunc_call, with the upside that
we should support any unittest-async based framework.

Also included 'asynctest' as test dependency for py37-twisted, and renamed
'twisted' to 'unittestextras' to better reflect that we install 'twisted' and
'asynctest' now.

This also fixes the problem of cleanUp functions not being properly called
for async functions.

Fix #7110
Fix #6924
2020-05-01 15:10:28 -03:00
..
acceptance pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
collect Add rudimentary mypy type checking 2019-07-09 10:49:17 +03:00
config/collect_pytest_prefix Add rudimentary mypy type checking 2019-07-09 10:49:17 +03:00
conftest_usageerror Add rudimentary mypy type checking 2019-07-09 10:49:17 +03:00
dataclasses pre-commit run pyupgrade --all-files 2019-06-03 12:08:02 -03:00
fixtures Update conftest.py 2020-03-03 09:59:38 -03:00
issue88_initial_file_multinodes Add rudimentary mypy type checking 2019-07-09 10:49:17 +03:00
marks/marks_considered_keywords Add rudimentary mypy type checking 2019-07-09 10:49:17 +03:00
perf_examples/collect_stats pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
tmpdir pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
unittest Let unittest frameworks deal with async functions 2020-05-01 15:10:28 -03:00
warnings summarize warning summaries if the number of locations is high 2020-03-01 14:08:15 +01:00
README.rst Small typo and grammar fix 2018-06-15 15:05:00 -03:00
issue_519.py pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
junit-10.xsd Validate xunit2 files against the schema 2019-08-09 10:55:06 -03:00
pytest.ini prepare tests and disable warnings for asyncio unittest cases 2020-03-30 21:55:12 +02:00

README.rst

Example test scripts
=====================


The files in this folder are not direct tests, but rather example test suites that demonstrate certain issues/behaviours.

In the future we will move part of the content of the acceptance tests here in order to have directly testable code instead of writing out things and then running them in nested pytest sessions/subprocesses.

This will aid debugging and comprehension.