@@ -922,20 +922,19 @@ def test_subscription_add_minutes(admin_auth_headers):
922922 f"{ API_PREFIX } /subscriptions/add-minutes" ,
923923 headers = admin_auth_headers ,
924924 json = {
925- "oid" : str (new_subs_oid ),
925+ "oid" : str (new_subs_oid_2 ),
926926 "minutes" : 75 ,
927927 "total_price" : 350 ,
928928 "currency" : "usd" ,
929929 "context" : "addon" ,
930930 },
931931 )
932932
933- print (r .json ())
934933 assert r .status_code == 200
935934 assert r .json () == {"updated" : True }
936935
937936 r = requests .post (
938- f"{ API_PREFIX } /orgs/{ new_subs_oid } " ,
937+ f"{ API_PREFIX } /orgs/{ new_subs_oid_2 } " ,
939938 headers = admin_auth_headers ,
940939 )
941940
@@ -947,8 +946,8 @@ def test_subscription_add_minutes(admin_auth_headers):
947946 assert last_update ["type" ] == "add-minutes"
948947 assert last_update ["context" ] == "addon"
949948 assert last_update ["update" ] == {
950- "maxPagesPerCrawl" : 50 ,
951- "storageQuota" : 500000 ,
949+ "maxPagesPerCrawl" : 100 ,
950+ "storageQuota" : 1000000 ,
952951 "extraExecMinutes" : 75 , # only this value updated from previous
953952 "giftedExecMinutes" : 0 ,
954953 "maxConcurrentCrawls" : 1 ,
0 commit comments