Skip to content

Commit d236820

Browse files
committed
Example5 testcase
1 parent 2a543b2 commit d236820

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/unit/test_examples.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,11 @@ def test_example_4():
4343
example4_main = join(example4_dir, "main.py")
4444
# Run it and make sure it doesn't raise an exception or otherwise exit with a non-zero code.
4545
subprocess.run(example4_main, cwd=example4_dir, check=True)
46+
47+
48+
def test_example_5():
49+
"""Test that the "example5" script runs successfully."""
50+
example5_dir = join(EXAMPLES, "05-nautobot-peeringdb")
51+
example5_main = join(example5_dir, "main.py")
52+
# Run it and make sure it doesn't raise an exception or otherwise exit with a non-zero code.
53+
subprocess.run(example5_main, cwd=example5_dir, check=True)

0 commit comments

Comments
 (0)