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_project/test_cli.py

17 lines
501 B
Python
Raw Normal View History

2018-12-20 18:59:25 +00:00
from tests import BaseTestCase
from catfish.project import Project
from dotenv import dotenv_values
class ProjectRunCLITestCase(BaseTestCase):
def setUp(self):
super().setUp()
self.project = Project(self.EXAMPLE_DIR)
def test_sets_environment(self):
with self.in_example_dir():
result = self.run_cli(["project", "run", "env"])
print(result)
self.assertEqual(result.exit_code, 0)
environment = dotenv_values(result.stdout)