Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
419cc9fd
Commit
419cc9fd
authored
Dec 15, 2023
by
BO ZHANG
🏀
Browse files
strip log file contents
parent
40fab6cc
Pipeline
#2430
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test_logger.py
View file @
419cc9fd
...
...
@@ -25,6 +25,6 @@ class TestFile(unittest.TestCase):
logger
.
error
(
"Good morning ..."
)
with
open
(
"test_logger.log"
,
"r"
)
as
f
:
lines
=
f
.
readlines
()
self
.
assertTrue
(
lines
[
0
].
endswith
(
"Hello ..."
))
self
.
assertTrue
(
lines
[
1
].
endswith
(
"There ..."
))
self
.
assertTrue
(
lines
[
2
].
endswith
(
"Good morning ..."
))
self
.
assertTrue
(
lines
[
0
].
strip
().
endswith
(
"Hello ..."
))
self
.
assertTrue
(
lines
[
1
].
strip
().
endswith
(
"There ..."
))
self
.
assertTrue
(
lines
[
2
].
strip
().
endswith
(
"Good morning ..."
))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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