Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Software Public
PASSOFT
julday
Commits
f0aefef3
Commit
f0aefef3
authored
Jun 07, 2021
by
Omid Hosseini
Browse files
Fix the unittest issue.
parent
1be0c0f1
Pipeline
#1157
passed with stage
in 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test_julday.py
View file @
f0aefef3
...
...
@@ -39,7 +39,7 @@ class TestJulday(unittest.TestCase):
@
patch
(
'sys.stdout'
,
new_callable
=
io
.
StringIO
)
def
test_cal_to_jul
(
self
,
mock_stdout
,
mock_exit
):
"""Test basic functionality of cal_to_jul function"""
cal_to_jul
(
VALID_DATE
[
0
:
2
]
)
cal_to_jul
(
VALID_DATE
)
output
=
'
\n
Calendar Date 04 02 2020
\n
Julian Date 093 2020
\n\n
'
self
.
assertEqual
(
mock_stdout
.
getvalue
(),
output
,
"Failed to properly convert date!"
)
...
...
Write
Preview
Supports
Markdown
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