Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
orekit_jpype
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Orekit
orekit_jpype
Commits
f3b69464
Commit
f3b69464
authored
5 months ago
by
Petrus Hyvönen
Browse files
Options
Downloads
Patches
Plain Diff
setup_orekit_data now raises a FileNotFoundError if not successful
parent
c54e2761
Branches
Branches containing commit
No related tags found
1 merge request
!22
Fix logging issue 8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/PyhelpersTest.py
+5
-3
5 additions, 3 deletions
test/PyhelpersTest.py
with
5 additions
and
3 deletions
test/PyhelpersTest.py
+
5
−
3
View file @
f3b69464
...
...
@@ -38,7 +38,7 @@ def test_setup_orekit_data_from_invalid_folder():
def
test_setup_orekit_data_default_args
():
"""
This test case has two different behaviours depending if the orekitdata library is installed or not
This test case has two different behaviours depending if the
§
orekitdata library is installed or not
"""
try
:
import
orekitdata
...
...
@@ -47,7 +47,8 @@ def test_setup_orekit_data_default_args():
except
ModuleNotFoundError
:
assert
True
with
pytest
.
raises
(
OrekitException
)
as
exc_info
:
setup_orekit_data
()
with
pytest
.
raises
(
FileNotFoundError
)
as
e
:
setup_orekit_data
()
# This call is supposed to fail because no more ephemerides are loaded
check_orekit_data_valid
()
assert
exc_info
.
value
.
args
[
0
]
==
'
no IERS UTC-TAI history data loaded
'
...
...
@@ -65,7 +66,8 @@ def test_setup_orekit_data_from_library():
except
ModuleNotFoundError
:
assert
True
with
pytest
.
raises
(
OrekitException
)
as
exc_info
:
setup_orekit_data
(
filenames
=
None
,
from_pip_library
=
True
)
with
pytest
.
raises
(
FileNotFoundError
)
as
e
:
setup_orekit_data
(
filenames
=
None
,
from_pip_library
=
True
)
# This call is supposed to fail because no more ephemerides are loaded
check_orekit_data_valid
()
assert
exc_info
.
value
.
args
[
0
]
==
'
no IERS UTC-TAI history data loaded
'
...
...
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