(cookiejar_no_examples)
| 4 | |
| 5 | |
| 6 | def test_examples_removed(cookiejar_no_examples): |
| 7 | cj = cookiejar_no_examples |
| 8 | ctx = cj.context |
| 9 | |
| 10 | example_files = [ |
| 11 | "example_mod.py", |
| 12 | "example_c.pyx", |
| 13 | "example_subpkg/" |
| 14 | "tests/" |
| 15 | ] |
| 16 | |
| 17 | for afile in example_files: |
| 18 | assert not (cj.project_path / ctx['package_name'] / afile).exists() |
| 19 | |
| 20 | |
| 21 | def test_examples_present(cookiejar_examples): |
nothing calls this directly
no outgoing calls
no test coverage detected