@@ -2667,7 +2667,7 @@ def test_manage_project_settings_in_organization_managed(self, monkeypatch):
2667
2667
"add_alternate_repository_form_class" : form ,
2668
2668
}
2669
2669
assert view .transfer_organization_project_form_class .calls == [
2670
- pretend .call (organization_choices = {"owned-org" })
2670
+ pretend .call (organization_choices = {organization_owned })
2671
2671
]
2672
2672
2673
2673
def test_manage_project_settings_in_organization_owned (self , monkeypatch ):
@@ -2699,7 +2699,7 @@ def test_manage_project_settings_in_organization_owned(self, monkeypatch):
2699
2699
"add_alternate_repository_form_class" : form ,
2700
2700
}
2701
2701
assert view .transfer_organization_project_form_class .calls == [
2702
- pretend .call (organization_choices = {"managed-org" })
2702
+ pretend .call (organization_choices = {organization_managed })
2703
2703
]
2704
2704
2705
2705
def test_add_alternate_repository (self , monkeypatch , db_request ):
@@ -3278,7 +3278,7 @@ def test_transfer_organization_project_no_current_organization(
3278
3278
3279
3279
db_request .POST = MultiDict (
3280
3280
{
3281
- "organization" : organization .normalized_name ,
3281
+ "organization" : str ( organization .id ) ,
3282
3282
"confirm_transfer_organization_project_name" : project .name ,
3283
3283
}
3284
3284
)
@@ -3372,7 +3372,7 @@ def test_transfer_organization_project_no_individual_owner(
3372
3372
3373
3373
db_request .POST = MultiDict (
3374
3374
{
3375
- "organization" : organization .normalized_name ,
3375
+ "organization" : str ( organization .id ) ,
3376
3376
"confirm_transfer_organization_project_name" : project .name ,
3377
3377
}
3378
3378
)
@@ -3483,7 +3483,7 @@ def test_transfer_organization_project_from_organization_managed(
3483
3483
3484
3484
db_request .POST = MultiDict (
3485
3485
{
3486
- "organization" : organization .normalized_name ,
3486
+ "organization" : str ( organization .id ) ,
3487
3487
"confirm_transfer_organization_project_name" : project .name ,
3488
3488
}
3489
3489
)
@@ -3547,7 +3547,9 @@ def test_transfer_organization_project_from_organization_managed(
3547
3547
pretend .call ("manage.project.settings" , project_name = "foo" )
3548
3548
]
3549
3549
assert transfer_organization_project_form_class .calls == [
3550
- pretend .call (db_request .POST , organization_choices = {"bar-owned" , "baz" })
3550
+ pretend .call (
3551
+ db_request .POST , organization_choices = {organization , organization_owned }
3552
+ )
3551
3553
]
3552
3554
assert isinstance (result , HTTPSeeOther )
3553
3555
assert result .headers ["Location" ] == "/the-redirect"
@@ -3581,7 +3583,7 @@ def test_transfer_organization_project_from_organization_owned(
3581
3583
3582
3584
db_request .POST = MultiDict (
3583
3585
{
3584
- "organization" : organization .normalized_name ,
3586
+ "organization" : str ( organization .id ) ,
3585
3587
"confirm_transfer_organization_project_name" : project .name ,
3586
3588
}
3587
3589
)
@@ -3645,7 +3647,10 @@ def test_transfer_organization_project_from_organization_owned(
3645
3647
pretend .call ("manage.project.settings" , project_name = "foo" )
3646
3648
]
3647
3649
assert transfer_organization_project_form_class .calls == [
3648
- pretend .call (db_request .POST , organization_choices = {"bar-managed" , "baz" })
3650
+ pretend .call (
3651
+ db_request .POST ,
3652
+ organization_choices = {organization_managed , organization },
3653
+ )
3649
3654
]
3650
3655
assert isinstance (result , HTTPSeeOther )
3651
3656
assert result .headers ["Location" ] == "/the-redirect"
0 commit comments