(self, pytester: Pytester)
| 94 | ) |
| 95 | |
| 96 | def test_config_cache(self, pytester: Pytester) -> None: |
| 97 | pytester.makeconftest( |
| 98 | """ |
| 99 | def pytest_configure(config): |
| 100 | # see that we get cache information early on |
| 101 | assert hasattr(config, "cache") |
| 102 | """ |
| 103 | ) |
| 104 | pytester.makepyfile( |
| 105 | """ |
| 106 | def test_session(pytestconfig): |
| 107 | assert hasattr(pytestconfig, "cache") |
| 108 | """ |
| 109 | ) |
| 110 | result = pytester.runpytest() |
| 111 | assert result.ret == 0 |
| 112 | result.stdout.fnmatch_lines(["*1 passed*"]) |
| 113 | |
| 114 | def test_cachefuncarg(self, pytester: Pytester) -> None: |
| 115 | pytester.makepyfile( |
nothing calls this directly
no test coverage detected