move ConfigProvider ctxmgr back to su tests
This commit is contained in:
parent
9df8e924a5
commit
8a1b48dd8c
2 changed files with 28 additions and 28 deletions
|
@ -7,10 +7,10 @@ import time
|
|||
import re
|
||||
import json as py_json
|
||||
|
||||
from contextlib import contextmanager
|
||||
from calendar import timegm
|
||||
from httmock import urlmatch, HTTMock, all_requests
|
||||
from StringIO import StringIO
|
||||
from calendar import timegm
|
||||
from contextlib import contextmanager
|
||||
from httmock import urlmatch, HTTMock, all_requests
|
||||
from urllib import urlencode
|
||||
from urlparse import urlparse, urlunparse, parse_qs
|
||||
|
||||
|
@ -119,15 +119,6 @@ CSRF_TOKEN_KEY = '_csrf_token'
|
|||
CSRF_TOKEN = '123csrfforme'
|
||||
|
||||
|
||||
class ConfigForTesting(object):
|
||||
def __enter__(self):
|
||||
config_provider.reset_for_test()
|
||||
return config_provider
|
||||
|
||||
def __exit__(self, type, value, traceback):
|
||||
config_provider.reset_for_test()
|
||||
|
||||
|
||||
class ApiTestCase(unittest.TestCase):
|
||||
maxDiff = None
|
||||
|
||||
|
|
Reference in a new issue