Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions properdocs/tests/cli_tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python

import gc
import io
import logging
import unittest
Expand All @@ -14,6 +15,12 @@ class CLITests(unittest.TestCase):
def setUp(self):
self.runner = CliRunner()

def tearDown(self):
super().tearDown()
# Cleanup of CliRunner, if done non-deterministically, can mess up tests that follow after.
del self.runner
gc.collect()

@mock.patch('properdocs.commands.serve.serve', autospec=True)
def test_serve_default(self, mock_serve):
result = self.runner.invoke(cli.cli, ["serve"], catch_exceptions=False)
Expand Down
Loading