File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 11import math
2- import requests
32import time
4- import pytest
5-
63from typing import Dict
74
5+ import pytest
6+ import requests
7+
88from .conftest import API_PREFIX
99from .utils import get_crawl_status
1010
11-
1211EXEC_MINS_QUOTA = 1
1312EXEC_SECS_QUOTA = EXEC_MINS_QUOTA * 60
1413GIFTED_MINS_QUOTA = 3
@@ -145,6 +144,15 @@ def test_add_execution_mins_extra_quotas(
145144 assert update ["update" ]
146145 assert data ["quotaUpdates" ][- 1 ]["context" ] == "test context 123"
147146
147+ # Reset back to previous value
148+ r = requests .post (
149+ f"{ API_PREFIX } /orgs/{ org_with_quotas } /quotas" ,
150+ headers = admin_auth_headers ,
151+ json = {
152+ "extraExecMinutes" : EXTRA_MINS_QUOTA ,
153+ },
154+ )
155+
148156
149157@pytest .mark .timeout (1200 )
150158def test_crawl_stopped_when_quota_reached_with_extra (
You can’t perform that action at this time.
0 commit comments