tests/obs: move Cache.delete_all() after CACHE_DIR changed.
Otherwise, the real caches are cleared whenever tests are run.
This commit is contained in:
parent
9465b2f6ea
commit
4eecb9c5c0
@ -111,7 +111,6 @@ class OBS(object):
|
|||||||
if not OBS._self:
|
if not OBS._self:
|
||||||
OBS._self = super(OBS, cls).__new__(cls, *args, **kwargs)
|
OBS._self = super(OBS, cls).__new__(cls, *args, **kwargs)
|
||||||
|
|
||||||
Cache.delete_all()
|
|
||||||
httpretty.reset()
|
httpretty.reset()
|
||||||
httpretty.enable()
|
httpretty.enable()
|
||||||
|
|
||||||
@ -129,6 +128,7 @@ class OBS(object):
|
|||||||
if not hasattr(Cache, '_CACHE_DIR'):
|
if not hasattr(Cache, '_CACHE_DIR'):
|
||||||
Cache._CACHE_DIR = True
|
Cache._CACHE_DIR = True
|
||||||
Cache.CACHE_DIR += '-test'
|
Cache.CACHE_DIR += '-test'
|
||||||
|
Cache.delete_all()
|
||||||
httpretty.enable()
|
httpretty.enable()
|
||||||
|
|
||||||
oscrc = os.path.join(fixtures, 'oscrc')
|
oscrc = os.path.join(fixtures, 'oscrc')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user