Use bare repo for testing

This commit is contained in:
Sergio Durigan Junior 2016-08-08 20:38:27 -04:00
parent 4fb36cfae1
commit b4b59c3759
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,22 @@
From: Sergio Durigan Junior <sergiodj@sergiodj.net>
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)

View file

@ -1 +1,2 @@
0001-Support-python-bcrypt-instead-of-py-bcrypt.patch
0002-Use-bare-repo-for-testing.patch