remove workspaces task order association for now
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user