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/test_main.py

11 lines
339 B
Python
Raw Normal View History

2018-12-12 15:53:56 +00:00
from catfish import __version__
from tests import BaseTestCase
class MainCLITestCase(BaseTestCase):
def test_version(self):
result = self.cli_runner.invoke(self.cli, ["--version"])
self.assertEqual(result.exit_code, 0)
self.assertIn(__version__, result.output)
self.assertIn("catfish", result.output)