##// END OF EJS Templates
tests: git changeset authors need to have the format 'username <user@example.com>'...
domruf -
r7012:438876d8 default
parent child Browse files
Show More
@@ -42,7 +42,7 b' from kallithea.lib.auth import AuthUser'
42 from kallithea.lib.db_manage import DbManage
42 from kallithea.lib.db_manage import DbManage
43 from kallithea.lib.vcs.backends.base import EmptyChangeset
43 from kallithea.lib.vcs.backends.base import EmptyChangeset
44 from kallithea.tests.base import invalidate_all_caches, GIT_REPO, HG_REPO, \
44 from kallithea.tests.base import invalidate_all_caches, GIT_REPO, HG_REPO, \
45 TESTS_TMP_PATH, TEST_USER_ADMIN_LOGIN, TEST_USER_REGULAR_LOGIN
45 TESTS_TMP_PATH, TEST_USER_ADMIN_LOGIN, TEST_USER_REGULAR_LOGIN, TEST_USER_ADMIN_EMAIL
46
46
47
47
48 log = logging.getLogger(__name__)
48 log = logging.getLogger(__name__)
@@ -293,7 +293,7 b' class Fixture(object):'
293 if parent is None:
293 if parent is None:
294 _cs = EmptyChangeset(alias=vcs_type)
294 _cs = EmptyChangeset(alias=vcs_type)
295 if author is None:
295 if author is None:
296 author = TEST_USER_ADMIN_LOGIN
296 author = '%s <%s>' % (TEST_USER_ADMIN_LOGIN, TEST_USER_ADMIN_EMAIL)
297
297
298 if newfile:
298 if newfile:
299 nodes = {
299 nodes = {
@@ -318,7 +318,7 b' class InMemoryChangesetTestMixin(object)'
318 self.imc.add(node)
318 self.imc.add(node)
319 date = datetime.datetime(1985, 1, 30, 1, 45)
319 date = datetime.datetime(1985, 1, 30, 1, 45)
320 commit = self.imc.commit(u"Committed at time when I was born ;-)",
320 commit = self.imc.commit(u"Committed at time when I was born ;-)",
321 author=u'lb', date=date)
321 author=u'lb <lb@example.com>', date=date)
322
322
323 self.assertEqual(commit.date, date)
323 self.assertEqual(commit.date, date)
324
324
@@ -56,7 +56,7 b' requirements = ['
56 "docutils>=0.8.1",
56 "docutils>=0.8.1",
57 "URLObject==2.3.4",
57 "URLObject==2.3.4",
58 "Routes==1.13",
58 "Routes==1.13",
59 "dulwich>=0.14.1,<0.18.6", # temporary workaround for not using 0.18.6 which cause test failure ... and perhaps also real failures
59 "dulwich>=0.14.1",
60 "mercurial>=2.9,<4.5",
60 "mercurial>=2.9,<4.5",
61 "decorator >= 3.3.2",
61 "decorator >= 3.3.2",
62 "Paste >= 2.0.3, < 3.0",
62 "Paste >= 2.0.3, < 3.0",
General Comments 0
You need to be logged in to leave comments. Login now