Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cesium-script
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
🐍 Python packages 📦
cesium-script
Commits
f9d4163d
Commit
f9d4163d
authored
1 year ago
by
Rafael Andres
Browse files
Options
Downloads
Patches
Plain Diff
Unit test
parent
61855921
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
tests/test_utils.py
+8
-8
8 additions, 8 deletions
tests/test_utils.py
with
9 additions
and
9 deletions
pyproject.toml
+
1
−
1
View file @
f9d4163d
...
...
@@ -100,4 +100,4 @@ check_untyped_defs = true
show_error_codes
=
true
[
tool.flake
8
]
ignore
=
[
'E231'
]
ignore
=
[
'E231'
,
'E203'
]
This diff is collapsed.
Click to expand it.
tests/test_utils.py
+
8
−
8
View file @
f9d4163d
...
...
@@ -4,7 +4,7 @@ import tempfile
import
pytest
import
spiceypy
as
sp
from
spiceypy.utils.exceptions
import
SpiceIDCODENOTFOUND
from
spiceypy.utils.exceptions
import
NotFoundError
from
cesium_script.czml.utils
import
(
clean_utc
,
...
...
@@ -93,16 +93,16 @@ def test_get_positions() -> None:
assert
len
(
cartographic
)
==
12
def
test_get_quaternions
()
->
None
:
start
=
sp
.
utc2et
(
"
2030-10-15T00:00:00
"
)
ets
=
[
start
+
step
for
step
in
range
(
0
,
3600
,
300
)]
get_quaternions
(
ets
,
"
IAU_JUPITER
"
,
"
J2000
"
)
def
test_get_illumination
()
->
None
:
start
=
sp
.
utc2et
(
"
2030-10-15T00:00:00
"
)
ets
=
[
start
]
positions
=
get_positions
(
ets
,
"
JUICE
"
,
"
JUPITER
"
)
get_illumination
(
start
,
"
JUICE
"
,
"
JUPITER
"
,
positions
[
0
])
with
pytest
.
raises
(
SpiceIDCODENOTFOUND
):
with
pytest
.
raises
(
NotFoundError
):
get_illumination
(
start
,
"
FAKE
"
,
"
JUPITER
"
,
positions
[
0
])
def
test_get_quaternions
()
->
None
:
start
=
sp
.
utc2et
(
"
2030-10-15T00:00:00
"
)
ets
=
[
start
+
step
for
step
in
range
(
0
,
3600
,
300
)]
get_quaternions
(
ets
,
"
IAU_JUPITER
"
,
"
J2000
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment