Show More
@@ -196,7 +196,7 b' class TestLoginController(object):' | |||||
196 | response = self.app.post( |
|
196 | response = self.app.post( | |
197 | route_path('login'), |
|
197 | route_path('login'), | |
198 | {'username': user.username, |
|
198 | {'username': user.username, | |
199 |
'password': password |
|
199 | 'password': password}) | |
200 | assert response.status_code == 302 |
|
200 | assert response.status_code == 302 | |
201 |
|
201 | |||
202 | def test_login_wrong_username_password(self): |
|
202 | def test_login_wrong_username_password(self): |
@@ -340,8 +340,6 b' class GitCommit(base.BaseCommit):' | |||||
340 | return nodes |
|
340 | return nodes | |
341 |
|
341 | |||
342 | def get_node(self, path, pre_load=None): |
|
342 | def get_node(self, path, pre_load=None): | |
343 | if isinstance(path, unicode): |
|
|||
344 | path = path.encode('utf-8') |
|
|||
345 | path = self._fix_path(path) |
|
343 | path = self._fix_path(path) | |
346 | if path not in self.nodes: |
|
344 | if path not in self.nodes: | |
347 | try: |
|
345 | try: |
@@ -49,11 +49,12 b' class MercurialInMemoryCommit(BaseInMemo' | |||||
49 | """ |
|
49 | """ | |
50 | self.check_integrity(parents) |
|
50 | self.check_integrity(parents) | |
51 |
|
51 | |||
52 |
if not isinstance(message, |
|
52 | if not isinstance(message, str) or not isinstance(author, str): | |
53 | # TODO: johbo: Should be a TypeError |
|
53 | # TODO: johbo: Should be a TypeError | |
54 |
raise RepositoryError( |
|
54 | raise RepositoryError( | |
55 | 'an <unicode> instance got %r & %r instead' |
|
55 | f'Given message and author needs to be ' | |
56 |
|
|
56 | f'an <str> instance got {type(message)} & {type(author)} instead' | |
|
57 | ) | |||
57 |
|
58 | |||
58 | if branch is None: |
|
59 | if branch is None: | |
59 | branch = self.repository.DEFAULT_BRANCH_NAME |
|
60 | branch = self.repository.DEFAULT_BRANCH_NAME |
@@ -959,7 +959,7 b' class MercurialRepository(BaseRepository' | |||||
959 | self._remote.invalidate_vcs_cache() |
|
959 | self._remote.invalidate_vcs_cache() | |
960 |
|
960 | |||
961 | def bookmark(self, bookmark, revision=None): |
|
961 | def bookmark(self, bookmark, revision=None): | |
962 |
if isinstance(bookmark, |
|
962 | if isinstance(bookmark, str): | |
963 | bookmark = safe_str(bookmark) |
|
963 | bookmark = safe_str(bookmark) | |
964 | self._remote.bookmark(bookmark, revision=revision) |
|
964 | self._remote.bookmark(bookmark, revision=revision) | |
965 | self._remote.invalidate_vcs_cache() |
|
965 | self._remote.invalidate_vcs_cache() |
@@ -207,7 +207,7 b' class SubversionCommit(base.BaseCommit):' | |||||
207 | @LazyProperty |
|
207 | @LazyProperty | |
208 | def affected_files(self): |
|
208 | def affected_files(self): | |
209 | changed_files = set() |
|
209 | changed_files = set() | |
210 |
for files in self._changes_cache. |
|
210 | for files in self._changes_cache.values(): | |
211 | changed_files.update(files) |
|
211 | changed_files.update(files) | |
212 | return list(changed_files) |
|
212 | return list(changed_files) | |
213 |
|
213 |
@@ -458,7 +458,6 b' sqlalchemy.db1.echo = false' | |||||
458 |
|
458 | |||
459 | ; recycle the connections after this amount of seconds |
|
459 | ; recycle the connections after this amount of seconds | |
460 | sqlalchemy.db1.pool_recycle = 3600 |
|
460 | sqlalchemy.db1.pool_recycle = 3600 | |
461 | sqlalchemy.db1.convert_unicode = true |
|
|||
462 |
|
461 | |||
463 | ; the number of connections to keep open inside the connection pool. |
|
462 | ; the number of connections to keep open inside the connection pool. | |
464 | ; 0 indicates no limit |
|
463 | ; 0 indicates no limit |
General Comments 0
You need to be logged in to leave comments.
Login now