Skip to content

Commit c39f7e7

Browse files
committed
added test storage functional tests
1 parent 964b25b commit c39f7e7

2 files changed

Lines changed: 2251 additions & 19 deletions

File tree

tools/integration_tests/conftest.py

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
"""Pytest configuration and fixtures for integration tests."""
22

3-
import os
3+
import contextlib
44
import logging
5+
import os
6+
import random
7+
import time
8+
import uuid
9+
10+
import hawkauthlib
11+
import pytest
12+
import webtest
13+
from pyramid.authorization import ACLAuthorizationPolicy
14+
from pyramid.interfaces import IAuthenticationPolicy
15+
from pyramid.request import Request
16+
from webtest import TestApp
17+
18+
from tools.integration_tests.test_support import get_test_configurator
519

620
# max number of attempts to check server heartbeat
721
SYNC_SERVER_STARTUP_MAX_ATTEMPTS = 35
@@ -10,8 +24,6 @@
1024
logger = logging.getLogger("tools.integration-tests")
1125

1226
if os.environ.get("SYNC_TEST_LOG_HTTP"):
13-
import webtest
14-
1527
_orig_do_request = webtest.TestApp.do_request
1628

1729
def _logged_do_request(self, req, *args, **kwargs):
@@ -27,22 +39,6 @@ def _logged_do_request(self, req, *args, **kwargs):
2739
webtest.TestApp.do_request = _logged_do_request
2840

2941

30-
import contextlib
31-
import random
32-
import time
33-
import uuid
34-
35-
import hawkauthlib
36-
import pytest
37-
import webtest
38-
from pyramid.authorization import ACLAuthorizationPolicy
39-
from pyramid.interfaces import IAuthenticationPolicy
40-
from pyramid.request import Request
41-
from webtest import TestApp
42-
43-
from tools.integration_tests.test_support import get_test_configurator
44-
45-
4642
def _retry_send(func, *args, **kwargs):
4743
"""Call a webtest method, retrying once on 409/503."""
4844
try:

0 commit comments

Comments
 (0)