Skip to content

Commit

Permalink
Merge pull request #12 from learningequality/extraneous
Browse files Browse the repository at this point in the history
Remove extranous command option
  • Loading branch information
bjester authored Aug 19, 2024
2 parents f611085 + 280643c commit 18bc5c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion kolibri_sync_extras_plugin/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.1"
__version__ = "0.2.2"
1 change: 0 additions & 1 deletion kolibri_sync_extras_plugin/sync/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def _get_or_queue_job(self, context, target_stage):
"id": context.transfer_session.id,
"target_stage": target_stage,
"capabilities": list(context.capabilities),
"start_stage": context.stage,
},
extra_metadata={
"type": "SYNCPROCEEDTO",
Expand Down
11 changes: 4 additions & 7 deletions test/sync/test_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,13 @@ def test_get_or_queue_job__new(
mock_job_storage.get_job.assert_not_called()

job = mock_job_storage.enqueue_job.call_args[0][0]
self.assertEqual(job.args, ("sync_proceed_to",))
self.assertEqual(
job.kwargs,
{
"args": ("sync_proceed_to",),
"kwargs": {
"id": "def456",
"target_stage": "other",
"capabilities": [],
"start_stage": "dequeuing",
},
"id": "def456",
"target_stage": "other",
"capabilities": [],
},
)
self.assertEqual(
Expand Down

0 comments on commit 18bc5c4

Please sign in to comment.