From 4b2468cd6daa5ae7741cb8126e7d6992247a28ad Mon Sep 17 00:00:00 2001 From: Adrienne Stilp Date: Fri, 21 Jun 2024 15:23:41 -0700 Subject: [PATCH] Update test data for better CDSA audit examples --- add_cdsa_example_data.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/add_cdsa_example_data.py b/add_cdsa_example_data.py index de7ca010..eb26c72d 100644 --- a/add_cdsa_example_data.py +++ b/add_cdsa_example_data.py @@ -147,7 +147,7 @@ # Add some users to the CDSA groups. -users = UserFactory.create_batch(10) +users = UserFactory.create_batch(12) cdsa_1001.signed_agreement.accessors.add(users[0]) GroupAccountMembershipFactory.create( group=cdsa_1001.signed_agreement.anvil_access_group, @@ -201,8 +201,10 @@ group=cdsa_1006.signed_agreement.anvil_access_group, account__user=users[9], ) -# Add an uploader. -cdsa_1006.uploaders.add(UserFactory.create()) +# Add uploaders. +cdsa_1006.uploaders.add(users[10]) +AccountFactory.create(user=users[10]) +cdsa_1006.uploaders.add(users[11]) cdsa_workspace_1 = factories.CDSAWorkspaceFactory.create( workspace__billing_project__name="demo-primed-cdsa",