Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
33fd05de
Commit
33fd05de
authored
May 23, 2015
by
leonardoo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add econding to open
parent
ea74ea43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
tests/tests/test_compressor.py
+2
-1
No files found.
tests/tests/test_compressor.py
View file @
33fd05de
...
@@ -3,6 +3,7 @@ from __future__ import unicode_literals
...
@@ -3,6 +3,7 @@ from __future__ import unicode_literals
import
base64
import
base64
import
os
import
os
import
io
try
:
try
:
from
mock
import
patch
from
mock
import
patch
...
@@ -175,7 +176,7 @@ class CompressorTest(TestCase):
...
@@ -175,7 +176,7 @@ class CompressorTest(TestCase):
tests_path
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
tests_path
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
output
=
SubProcessCompressor
(
False
)
.
execute_command
(
output
=
SubProcessCompressor
(
False
)
.
execute_command
(
'/usr/bin/env cat'
,
'/usr/bin/env cat'
,
open
(
tests_path
+
'/assets/css/unicode.css'
)
.
read
())
io
.
open
(
tests_path
+
'/assets/css/unicode.css'
,
encoding
=
"utf-8"
)
.
read
())
self
.
assertEqual
(
""".some_class {
self
.
assertEqual
(
""".some_class {
// Some unicode
// Some unicode
content: "áéíóú";
content: "áéíóú";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment