Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
985f9b6d
Commit
985f9b6d
authored
Nov 17, 2016
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enforce Unix line endings in test data
parent
71c70970
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
.gitattributes
.gitattributes
+2
-0
test/command_testcase.py
test/command_testcase.py
+5
-4
No files found.
.gitattributes
0 → 100644
View file @
985f9b6d
test/data/* text eol=lf
test/data/*.ics binary
test/command_testcase.py
View file @
985f9b6d
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
os
from
test.topydo_testcase
import
TopydoTest
from
test.topydo_testcase
import
TopydoTest
from
topydo.lib.Utils
import
escape_ansi
from
topydo.lib.Utils
import
escape_ansi
...
@@ -27,12 +28,12 @@ class CommandTest(TopydoTest):
...
@@ -27,12 +28,12 @@ class CommandTest(TopydoTest):
def
out
(
self
,
p_output
):
def
out
(
self
,
p_output
):
if
isinstance
(
p_output
,
list
)
and
p_output
:
if
isinstance
(
p_output
,
list
)
and
p_output
:
self
.
output
+=
escape_ansi
(
self
.
output
+=
escape_ansi
(
"
\
n
"
.
join
([
str
(
s
)
for
s
in
p_output
])
+
"
\
n
"
)
os
.
linesep
.
join
([
str
(
s
)
for
s
in
p_output
])
+
os
.
linesep
)
elif
p_output
:
elif
p_output
:
self
.
output
+=
str
(
p_output
)
+
"
\
n
"
self
.
output
+=
str
(
p_output
)
+
os
.
linesep
def
error
(
self
,
p_error
):
def
error
(
self
,
p_error
):
if
isinstance
(
p_error
,
list
)
and
p_error
:
if
isinstance
(
p_error
,
list
)
and
p_error
:
self
.
errors
+=
escape_ansi
(
p_error
+
"
\
n
"
)
+
"
\
n
"
self
.
errors
+=
escape_ansi
(
p_error
+
os
.
linesep
)
+
os
.
linesep
elif
p_error
:
elif
p_error
:
self
.
errors
+=
str
(
p_error
)
+
"
\
n
"
self
.
errors
+=
str
(
p_error
)
+
os
.
linesep
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