File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,16 @@ Your test code will help you find bugs early, and alert you if you accidentally
2323
2424## Testing frameworks for Textual
2525
26- Textual doesn't require any particular test framework .
27- You can use any test framework you are familiar with, but we will be using [ pytest ] ( https://docs.pytest.org/ ) in this chapter .
26+ Textual is an async framework powered by Python's [ asyncio ] ( https://docs.python.org/3/library/asyncio.html ) library .
27+ While Textual doesn't require a particular test framework, it must provide support for asyncio testing .
2828
29+ You can use any test framework you are familiar with, but we will be using [ pytest] ( https://docs.pytest.org/ )
30+ along with the [ pytest-asyncio] ( https://pytest-asyncio.readthedocs.io/ ) plugin in this chapter.
31+
32+ By default, the ` pytest-asyncio ` plugin requires each async test to be decorated with ` @pytest.mark.asyncio ` .
33+ You can avoid having to add this marker to every async test
34+ by setting ` asyncio_mode = auto ` in your pytest configuration
35+ or by running pytest with the ` --asyncio-mode=auto ` option.
2936
3037## Testing apps
3138
You can’t perform that action at this time.
0 commit comments