We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d89a59e commit 021c190Copy full SHA for 021c190
properdocs/tests/cli_tests.py
@@ -1,5 +1,6 @@
1
#!/usr/bin/env python
2
3
+import gc
4
import io
5
import logging
6
import unittest
@@ -14,6 +15,12 @@ class CLITests(unittest.TestCase):
14
15
def setUp(self):
16
self.runner = CliRunner()
17
18
+ def tearDown(self):
19
+ super().tearDown()
20
+ # Cleanup of CliRunner, if done non-deterministically, can mess up tests that follow after.
21
+ del self.runner
22
+ gc.collect()
23
+
24
@mock.patch('properdocs.commands.serve.serve', autospec=True)
25
def test_serve_default(self, mock_serve):
26
result = self.runner.invoke(cli.cli, ["serve"], catch_exceptions=False)
0 commit comments