@@ -92,12 +92,14 @@ def test_embargoed_registration_from_changed_to_private_project_spam_ham(self, e
92
92
embargoed_registration_from_changed_to_private_project .confirm_ham (save = True )
93
93
assert not embargoed_registration_from_changed_to_private_project .is_public
94
94
95
+ @pytest .mark .usefixtures ('mock_gravy_valet_get_verified_links' )
95
96
def test_public_registration_from_public_project_spam_ham (self , superuser , public_registration_from_public_project ):
96
97
public_registration_from_public_project .confirm_spam (save = True )
97
98
assert not public_registration_from_public_project .is_public
98
99
public_registration_from_public_project .confirm_ham (save = True )
99
100
assert public_registration_from_public_project .is_public
100
101
102
+ @pytest .mark .usefixtures ('mock_gravy_valet_get_verified_links' )
101
103
def test_public_registration_from_private_project_spam_ham (self , superuser , public_registration_from_private_project ):
102
104
public_registration_from_private_project .confirm_spam (save = True )
103
105
assert not public_registration_from_private_project .is_public
@@ -110,18 +112,21 @@ def test_private_registration_from_private_project_spam_ham(self, superuser, pri
110
112
private_registration_from_public_project .confirm_ham (save = True )
111
113
assert not private_registration_from_public_project .is_public
112
114
115
+ @pytest .mark .usefixtures ('mock_gravy_valet_get_verified_links' )
113
116
def test_public_registration_from_changed_to_public_project_spam_ham (self , superuser , public_registration_from_changed_to_public_project ):
114
117
public_registration_from_changed_to_public_project .confirm_spam (save = True )
115
118
assert not public_registration_from_changed_to_public_project .is_public
116
119
public_registration_from_changed_to_public_project .confirm_ham (save = True )
117
120
assert public_registration_from_changed_to_public_project .is_public
118
121
122
+ @pytest .mark .usefixtures ('mock_gravy_valet_get_verified_links' )
119
123
def test_public_registration_from_changed_to_private_project_spam_ham (self , superuser , public_registration_from_changed_to_private_project ):
120
124
public_registration_from_changed_to_private_project .confirm_spam (save = True )
121
125
assert not public_registration_from_changed_to_private_project .is_public
122
126
public_registration_from_changed_to_private_project .confirm_ham (save = True )
123
127
assert public_registration_from_changed_to_private_project .is_public
124
128
129
+ @pytest .mark .usefixtures ('mock_gravy_valet_get_verified_links' )
125
130
def test_unapproved_registration_task (self , embargoed_registration_from_changed_to_public_project ):
126
131
embargoed_registration_from_changed_to_public_project .registration_approval .state = 'unapproved'
127
132
embargoed_registration_from_changed_to_public_project .registration_approval .initiation_date -= timedelta (3 )
@@ -131,6 +136,7 @@ def test_unapproved_registration_task(self, embargoed_registration_from_changed_
131
136
embargoed_registration_from_changed_to_public_project .registration_approval .refresh_from_db ()
132
137
assert embargoed_registration_from_changed_to_public_project .registration_approval .state == 'approved'
133
138
139
+ @pytest .mark .usefixtures ('mock_gravy_valet_get_verified_links' )
134
140
def test_unapproved_registration_task_after_spam (self , embargoed_registration_from_changed_to_public_project ):
135
141
embargoed_registration_from_changed_to_public_project .registration_approval .state = 'unapproved'
136
142
embargoed_registration_from_changed_to_public_project .registration_approval .initiation_date -= timedelta (3 )
@@ -141,6 +147,7 @@ def test_unapproved_registration_task_after_spam(self, embargoed_registration_fr
141
147
embargoed_registration_from_changed_to_public_project .registration_approval .refresh_from_db ()
142
148
assert embargoed_registration_from_changed_to_public_project .registration_approval .state == 'unapproved'
143
149
150
+ @pytest .mark .usefixtures ('mock_gravy_valet_get_verified_links' )
144
151
def test_unapproved_registration_task_after_spam_ham (self , embargoed_registration_from_changed_to_public_project ):
145
152
embargoed_registration_from_changed_to_public_project .registration_approval .state = 'unapproved'
146
153
embargoed_registration_from_changed_to_public_project .registration_approval .initiation_date -= timedelta (3 )
0 commit comments