Add test for Projects.create
This commit is contained in:
parent
8ac271e83e
commit
814ec5a513
12
tests/domain/test_projects.py
Normal file
12
tests/domain/test_projects.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from atst.domain.projects import Projects
|
||||||
|
from tests.factories import WorkspaceFactory
|
||||||
|
|
||||||
|
|
||||||
|
def test_create_project_with_multiple_environments():
|
||||||
|
workspace = WorkspaceFactory.create()
|
||||||
|
project = Projects.create(workspace, "My Test Project", "Test", ["dev", "prod"])
|
||||||
|
|
||||||
|
assert project.workspace == workspace
|
||||||
|
assert project.name == "My Test Project"
|
||||||
|
assert project.description == "Test"
|
||||||
|
assert [e.name for e in project.environments] == ["dev", "prod"]
|
Loading…
x
Reference in New Issue
Block a user