fix: tests
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-04-26 14:39:49 +03:00
parent 60e8ecc41a
commit f30076783d
3 changed files with 9 additions and 10 deletions

View File

@@ -26,7 +26,7 @@ class StdoutWriter(OutputWriter):
class KVWriter(OutputWriter):
def __init__(self, *args, path=None, **kwargs):
def __init__(self, path=None, *args, **kwargs):
try:
os.stat(path)
except FileNotFoundError:
@@ -42,7 +42,7 @@ class KVWriter(OutputWriter):
class HTTPWriter(OutputWriter):
def __init__(self, *args, path=None, **kwargs):
def __init__(self, path=None, *args, **kwargs):
super(HTTPWriter, self).__init__(*args, **kwargs)
self.path = path
@@ -83,7 +83,7 @@ class KeyedWriterFactory:
logg.debug(f"adding key {k} t keyed writer factory")
self.x[k] = v
def new(self, *_args, path=None, **_kwargs):
def new(self, path=None, *_args, **_kwargs):
writer_keyed = None
writer_immutable = None
if self.key_writer_constructor is not None: