Test to make sure that pytest reads setup.py files that are not used for python packages when ran with --doctest-modules
(self, pytester: Pytester)
| 818 | result.stdout.fnmatch_lines(["*collected 2 items*", "*1 failed, 1 passed*"]) |
| 819 | |
| 820 | def test_invalid_setup_py(self, pytester: Pytester): |
| 821 | """ |
| 822 | Test to make sure that pytest reads setup.py files that are not used |
| 823 | for python packages when ran with --doctest-modules |
| 824 | """ |
| 825 | p = pytester.makepyfile( |
| 826 | setup=""" |
| 827 | def test_foo(): |
| 828 | return 'bar' |
| 829 | """ |
| 830 | ) |
| 831 | result = pytester.runpytest(p, "--doctest-modules") |
| 832 | result.stdout.fnmatch_lines(["*collected 1 item*"]) |
| 833 | |
| 834 | |
| 835 | class TestLiterals: |
nothing calls this directly
no test coverage detected