This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
catfish/tests/__init__.py

16 lines
415 B
Python

from unittest import TestCase
from click.testing import CliRunner
from catfish.__main__ import cli
from catfish import worker
import functools
class BaseTestCase(TestCase):
def setUp(self):
worker.stop_worker()
self.cli_runner = CliRunner()
self.cli = cli
self.run_cli = functools.partial(self.cli_runner.invoke, self.cli)
def tearDown(self):
worker.stop_worker()