Show More
@@ -34,6 +34,7 b' import pytest' | |||||
34 | import logging |
|
34 | import logging | |
35 |
|
35 | |||
36 | from rhodecode import events |
|
36 | from rhodecode import events | |
|
37 | from rhodecode.lib.str_utils import safe_bytes | |||
37 | from rhodecode.model.db import Integration, UserRepoToPerm, Permission, \ |
|
38 | from rhodecode.model.db import Integration, UserRepoToPerm, Permission, \ | |
38 | UserToRepoBranchPermission, User |
|
39 | UserToRepoBranchPermission, User | |
39 | from rhodecode.model.integration import IntegrationModel |
|
40 | from rhodecode.model.integration import IntegrationModel | |
@@ -76,7 +77,7 b' def rcextensions(request, db_connection,' | |||||
76 | return |
|
77 | return | |
77 |
|
78 | |||
78 | request.addfinalizer(rcextensions_path.remove) |
|
79 | request.addfinalizer(rcextensions_path.remove) | |
79 | init_path.write_binary(init_content, ensure=True) |
|
80 | init_path.write_binary(safe_bytes(init_content), ensure=True) | |
80 |
|
81 | |||
81 |
|
82 | |||
82 | @pytest.fixture(scope="module") |
|
83 | @pytest.fixture(scope="module") |
General Comments 0
You need to be logged in to leave comments.
Login now