@@ -202,7 +202,7 @@ def test_get_user_from_email(self):
202
202
project = self .create_project ()
203
203
self .create_member (user = user , organization = project .organization )
204
204
release = Release .objects .create (
205
- organization_id = project .organization_id , version = uuid4 ().hex , new_groups = 1
205
+ organization_id = project .organization_id , version = uuid4 ().hex
206
206
)
207
207
release .add_project (project )
208
208
commit_author = CommitAuthor .objects .create (
@@ -242,7 +242,7 @@ def test_get_single_user_from_email(self):
242
242
self .create_member (user = user , organization = project .organization )
243
243
self .create_member (user = otheruser , organization = project .organization )
244
244
release = Release .objects .create (
245
- organization_id = project .organization_id , version = uuid4 ().hex , new_groups = 1
245
+ organization_id = project .organization_id , version = uuid4 ().hex
246
246
)
247
247
release .add_project (project )
248
248
commit_author = CommitAuthor .objects .create (
@@ -285,7 +285,7 @@ def test_select_user_from_appropriate_org(self):
285
285
project = self .create_project ()
286
286
self .create_member (user = otheruser , organization = project .organization )
287
287
release = Release .objects .create (
288
- organization_id = project .organization_id , version = uuid4 ().hex , new_groups = 1
288
+ organization_id = project .organization_id , version = uuid4 ().hex
289
289
)
290
290
release .add_project (project )
291
291
commit_author = CommitAuthor .objects .create (
@@ -322,7 +322,7 @@ def test_no_commit_author(self):
322
322
project = self .create_project ()
323
323
self .create_member (user = otheruser , organization = project .organization )
324
324
release = Release .objects .create (
325
- organization_id = project .organization_id , version = uuid4 ().hex , new_groups = 1
325
+ organization_id = project .organization_id , version = uuid4 ().hex
326
326
)
327
327
release .add_project (project )
328
328
commit = Commit .objects .create (
@@ -351,7 +351,7 @@ def test_deduplicate_users(self):
351
351
project = self .create_project ()
352
352
self .create_member (user = user , organization = project .organization )
353
353
release = Release .objects .create (
354
- organization_id = project .organization_id , version = uuid4 ().hex , new_groups = 1
354
+ organization_id = project .organization_id , version = uuid4 ().hex
355
355
)
356
356
release .add_project (project )
357
357
commit_author1 = CommitAuthor .objects .create (
@@ -397,6 +397,7 @@ def test_deduplicate_users(self):
397
397
result = serialize (release , user )
398
398
assert len (result ["authors" ]) == 1
399
399
assert result [
"authors" ][
0 ][
"email" ]
== "[email protected] "
400
+ assert result ["newGroups" ] == 1
400
401
401
402
def test_with_deploy (self ):
402
403
user = self .create_user ()
0 commit comments