@@ -86,38 +86,6 @@ def test_create_for_with_prefix(self, m: MagicMock):
86
86
)
87
87
self .assertEqual (payment .public_order_id , "xyz2020/OF-123456/4" )
88
88
89
- @patch (
90
- "openforms.payments.models.GlobalConfiguration.get_solo" ,
91
- return_value = GlobalConfiguration (
92
- payment_order_id_prefix = "" , wait_for_payment_to_register = True
93
- ),
94
- )
95
- @patch (
96
- "openforms.submissions.public_references.get_random_reference" ,
97
- return_value = "OF-123456" ,
98
- )
99
- def test_create_for_no_registration (self , m1 : MagicMock , m2 : MagicMock ):
100
- amount = Decimal ("11.25" )
101
- options = {
102
- "foo" : 123 ,
103
- }
104
-
105
- submission = SubmissionFactory .create (completed_not_preregistered = True )
106
- # create some pre-existing records
107
- SubmissionPaymentFactory .create_batch (size = 2 )
108
-
109
- # create payment with auto-generated order_id
110
- payment = SubmissionPayment .objects .create_for (
111
- submission , "plugin1" , options , amount
112
- )
113
-
114
- self .assertEqual (payment .public_order_id , "OF-123456/3" )
115
-
116
- payment = SubmissionPayment .objects .create_for (
117
- submission , "plugin1" , options , amount
118
- )
119
- self .assertEqual (payment .public_order_id , "OF-123456/4" )
120
-
121
89
def test_queryset_sum_amount (self ):
122
90
self .assertEqual (0 , SubmissionPayment .objects .none ().sum_amount ())
123
91
0 commit comments