CacheWriter: Update tests for previous open file change.
This commit is contained in:
parent
08840e6757
commit
8e5cb0642f
1 changed files with 3 additions and 6 deletions
|
@ -15,12 +15,9 @@ class TestCacheFile(oxrlib.cache.WriteCacheFile):
|
||||||
def __init__(self, path, *args, **kwargs):
|
def __init__(self, path, *args, **kwargs):
|
||||||
self.path = path
|
self.path = path
|
||||||
assert args[0].startswith('w')
|
assert args[0].startswith('w')
|
||||||
|
self.open_file = StringIO()
|
||||||
def open(self):
|
self.open_file.name = self.path.as_posix()
|
||||||
last_file = StringIO()
|
type(self).last_file = self.open_file
|
||||||
last_file.name = self.path.as_posix()
|
|
||||||
type(self).last_file = last_file
|
|
||||||
return self.last_file
|
|
||||||
|
|
||||||
|
|
||||||
class FakeRate:
|
class FakeRate:
|
||||||
|
|
Loading…
Reference in a new issue