remove workspaces task order association for now

This commit is contained in:
dandds
2018-08-16 16:46:00 -04:00
committed by richard-dds
parent ef153f5226
commit 75f41d4d2b
5 changed files with 34 additions and 10 deletions

View File

@@ -9,13 +9,11 @@ from tests.factories import WorkspaceFactory, RequestFactory, TaskOrderFactory
def test_can_create_workspace():
request = RequestFactory.create()
to = TaskOrderFactory.create()
workspace = Workspaces.create(request, to)
workspace = Workspaces.create(request)
assert workspace.request == request
assert workspace.task_order == to
assert workspace.name == request.id
workspace = Workspaces.create(request, to, name="frugal-whale")
workspace = Workspaces.create(request, name="frugal-whale")
assert workspace.name == "frugal-whale"

View File

@@ -110,6 +110,5 @@ class WorkspaceFactory(factory.alchemy.SQLAlchemyModelFactory):
model = Workspace
request = factory.SubFactory(RequestFactory)
task_order = factory.SubFactory(TaskOrderFactory)
# name it the same as the request ID by default
name = factory.LazyAttribute(lambda w: w.request.id)