MCPcopy Create free account
hub / github.com/OpenAstronomy/packaging-guide / test_examples_removed

Function test_examples_removed

tests/test_hooks.py:6–18  ·  view source on GitHub ↗
(cookiejar_no_examples)

Source from the content-addressed store, hash-verified

4
5
6def 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
21def test_examples_present(cookiejar_examples):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected