From b4b59c37590618cd98469a3a4e307d09af477a9c Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Mon, 8 Aug 2016 20:38:27 -0400 Subject: [PATCH] Use bare repo for testing --- .../0002-Use-bare-repo-for-testing.patch | 22 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 23 insertions(+) create mode 100644 debian/patches/0002-Use-bare-repo-for-testing.patch diff --git a/debian/patches/0002-Use-bare-repo-for-testing.patch b/debian/patches/0002-Use-bare-repo-for-testing.patch new file mode 100644 index 0000000..d30326b --- /dev/null +++ b/debian/patches/0002-Use-bare-repo-for-testing.patch @@ -0,0 +1,22 @@ +From: Sergio Durigan Junior +Date: Mon, 8 Aug 2016 20:37:40 -0400 +Subject: Use bare repo for testing + +--- + tests/test_pagure_flask_api_issue.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/tests/test_pagure_flask_api_issue.py b/tests/test_pagure_flask_api_issue.py +index 2b6fb7a..b1324ab 100644 +--- a/tests/test_pagure_flask_api_issue.py ++++ b/tests/test_pagure_flask_api_issue.py +@@ -46,7 +46,8 @@ class PagureFlaskApiIssuetests(tests.Modeltests): + def test_api_new_issue(self): + """ Test the api_new_issue method of the flask api. """ + tests.create_projects(self.session) +- tests.create_projects_git(os.path.join(tests.HERE, 'tickets')) ++ tests.create_projects_git( ++ os.path.join(tests.HERE, 'tickets'), bare=True) + tests.create_tokens(self.session) + tests.create_tokens_acl(self.session) + diff --git a/debian/patches/series b/debian/patches/series index 48a2f82..9b029c4 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 0001-Support-python-bcrypt-instead-of-py-bcrypt.patch +0002-Use-bare-repo-for-testing.patch