fix(encoding for file): fixed support of non utf-8 files in all backends
This commit is contained in:
parent
f687bfc994
commit
d08633d220
42 changed files with 2001 additions and 1973 deletions
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
import pytest
|
||||
|
||||
from rhodecode.lib.str_utils import safe_str
|
||||
from rhodecode.model.db import User, ChangesetComment
|
||||
from rhodecode.model.meta import Session
|
||||
from rhodecode.model.comment import CommentsModel
|
||||
|
|
@ -36,7 +37,7 @@ def make_repo_comments_factory(request):
|
|||
commit = repo.scm_instance()[0]
|
||||
|
||||
commit_id = commit.raw_id
|
||||
file_0 = commit.affected_files[0]
|
||||
file_0 = safe_str(commit.affected_files[0])
|
||||
comments = []
|
||||
|
||||
# general
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue