From e5c5fc712b1e9a9d930a3e96171524a4d8313371 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 22 2015 08:49:23 +0000 Subject: Create the tickets git repo for the projects of the tests --- diff --git a/tests/test_progit_flask_api_issue.py b/tests/test_progit_flask_api_issue.py index 91bcf3a..2bede50 100644 --- a/tests/test_progit_flask_api_issue.py +++ b/tests/test_progit_flask_api_issue.py @@ -38,12 +38,17 @@ class PagureFlaskApiIssuetests(tests.Modeltests): pagure.api.SESSION = self.session pagure.api.issue.SESSION = self.session pagure.lib.SESSION = self.session + + pagure.APP.config['TICKETS_FOLDER'] = os.path.join( + tests.HERE, 'tickets') + self.app = pagure.APP.test_client() def test_api_new_issue(self): """ Test the token based authentication. """ tests.create_projects(self.session) + tests.create_projects_git(os.path.join(tests.HERE, 'tickets')) tests.create_tokens(self.session) tests.create_acls(self.session) tests.create_tokens_acl(self.session)