diff --git a/pagure/lib/tasks_services.py b/pagure/lib/tasks_services.py index f8c4f0c..9248661 100644 --- a/pagure/lib/tasks_services.py +++ b/pagure/lib/tasks_services.py @@ -333,7 +333,7 @@ def load_json_commits_to_db( @conn.task(queue=pagure_config.get('CI_CELERY_QUEUE', None), bind=True) @pagure_task -def trigger_ci_build(self, project_name, pr_id, branch, ci_type): +def trigger_ci_build(self, session, project_name, pr_id, branch, ci_type): ''' Triggers a new run of the CI system on the specified pull-request. diff --git a/tests/test_pagure_flask_ui_plugins.py b/tests/test_pagure_flask_ui_plugins.py index 9254e42..69d18b4 100644 --- a/tests/test_pagure_flask_ui_plugins.py +++ b/tests/test_pagure_flask_ui_plugins.py @@ -9,17 +9,11 @@ """ __requires__ = ['SQLAlchemy >= 0.8'] -import pkg_resources -import json import unittest -import shutil import sys import os - -import pygit2 import wtforms -from mock import patch sys.path.insert(0, os.path.join(os.path.dirname( os.path.abspath(__file__)), '..')) @@ -90,7 +84,7 @@ class PagureFlaskPluginstests(tests.SimplePagureTest): '