Automatically assign workspace owner to environments

This commit is contained in:
richard-dds
2018-09-10 13:35:16 -04:00
parent 59a5b2da5a
commit 996596f2b3
6 changed files with 9 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ 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"])
project = Projects.create(workspace.owner, workspace, "My Test Project", "Test", ["dev", "prod"])
assert project.workspace == workspace
assert project.name == "My Test Project"