(self, pytester: Pytester)
| 119 | ) |
| 120 | |
| 121 | def test_config_cache(self, pytester: Pytester) -> None: |
| 122 | pytester.makeconftest( |
| 123 | """ |
| 124 | def pytest_configure(config): |
| 125 | # see that we get cache information early on |
| 126 | assert hasattr(config, "cache") |
| 127 | """ |
| 128 | ) |
| 129 | pytester.makepyfile( |
| 130 | """ |
| 131 | def test_session(pytestconfig): |
| 132 | assert hasattr(pytestconfig, "cache") |
| 133 | """ |
| 134 | ) |
| 135 | result = pytester.runpytest() |
| 136 | assert result.ret == 0 |
| 137 | result.stdout.fnmatch_lines(["*1 passed*"]) |
| 138 | |
| 139 | def test_cachefuncarg(self, pytester: Pytester) -> None: |
| 140 | pytester.makepyfile( |
nothing calls this directly
no test coverage detected