Skip to content

Commit

Permalink
WiP - Add DB API unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dany9966 committed Nov 14, 2024
1 parent 34573ab commit f2a9820
Show file tree
Hide file tree
Showing 4 changed files with 936 additions and 18 deletions.
2 changes: 1 addition & 1 deletion coriolis/db/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def get_transfers(context,
q = q.options(orm.undefer('info'))
q = q.filter()
if transfer_scenario:
q.filter(models.Transfer.scenario == transfer_scenario)
q = q.filter(models.Transfer.scenario == transfer_scenario)
if is_user_context(context):
q = q.filter(
models.Transfer.project_id == context.project_id)
Expand Down
2 changes: 1 addition & 1 deletion coriolis/providers/backup_writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def from_connection_info(cls, info, volumes_info):


class SSHBackupWriterImpl(BaseBackupWriterImpl):
def __init__(self, path, disk_id, compress_transfer=None,
def __init__(self, path, disk_id, compress_transfer=False,
encoder_count=3):
self._msg_id = None
self._stdin = None
Expand Down
Loading

0 comments on commit f2a9820

Please sign in to comment.