Skip to content

Commit

Permalink
fixup! fix monkeypatch
Browse files Browse the repository at this point in the history
  • Loading branch information
melvinsoft committed May 24, 2021
1 parent 88b17a2 commit 3747b4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion figures/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,6 @@ def run_figures_monthly_metrics():
logger.info('Starting figures.tasks.run_figures_monthly_metrics...')
for site in get_sites():
populate_monthly_metrics_for_site.apply_async(
kwargs={'site_id': site.id},
site.id,
queue='edx.lms.core.high'
)
2 changes: 1 addition & 1 deletion tests/tasks/test_monthly_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_run_figures_monthly_metrics_with_faked_subtask(transactional_db, monkey
assert expected_sites.count()
sites_visited = []

def fake_populate_monthly_metrics_for_site(site_id, kwargs, queue):
def fake_populate_monthly_metrics_for_site(site_id, queue):
sites_visited.append(site_id)

monkeypatch.setattr('figures.tasks.populate_monthly_metrics_for_site.apply_async',
Expand Down

0 comments on commit 3747b4e

Please sign in to comment.