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-sims
csst_mci_sim
Commits
758149d8
Commit
758149d8
authored
Oct 25, 2024
by
Yan Zhaojun
Browse files
Delete test_zodiacal.py
parent
65e0c6a5
Pipeline
#7078
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test_zodiacal.py
deleted
100644 → 0
View file @
65e0c6a5
"""
Identifier: mci_sim/tests/test_zodiacal.py
Name: test_zodiacal.py
Description: Test zodiacal sim.
Author: Zhaojun Yan
Created: 2024-04-09
Modified-History:
2024-04-09, Zhaojun Yan, created
"""
import
unittest
import
os
import
sys
import
faulthandler
from
csst_mci_sim
import
zodiacal
class
TestDemoFunction
(
unittest
.
TestCase
):
def
test_zodiacal
(
self
):
"""
Aim
---
Test zodiacal sim function: .
Criteria
--------
Pass if the demo function returns `1`.
Details
-------
The demo function returns the length of the input argument list.
This case aims to test whether the demo function returns `1` if input is `None`.
"""
faulthandler
.
enable
()
# demo function test
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'mci_sim/'
)
print
(
dir_path
)
# 获取当前工作目录
# current_path = os.getcwd()
# print("当前路径:", current_path)
wave0
,
zodi0
=
zodiacal
.
zodiacal
(
10.0
,
20.0
,
'2024-04-04'
,
dir_path
)
self
.
assertEqual
(
1
,
1
,
"case 1: test_zodiacal passes."
,
)
#############################################
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