Skip to content
Snippets Groups Projects
Commit f9d4163d authored by Rafael Andres's avatar Rafael Andres
Browse files

Unit test

parent 61855921
No related branches found
No related tags found
No related merge requests found
......@@ -100,4 +100,4 @@ check_untyped_defs = true
show_error_codes = true
[tool.flake8]
ignore = ['E231']
ignore = ['E231', 'E203']
......@@ -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")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment