16 lines
501 B
Python
16 lines
501 B
Python
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)
|