Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Knoten
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
aflab
astrogeology
Knoten
Commits
62de69d4
Commit
62de69d4
authored
1 year ago
by
Laura, Jason R
Browse files
Options
Downloads
Patches
Plain Diff
Updates for comments.
parent
eb4c3ed7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_csm.py
+2
-2
2 additions, 2 deletions
tests/test_csm.py
with
2 additions
and
2 deletions
tests/test_csm.py
+
2
−
2
View file @
62de69d4
...
@@ -37,7 +37,7 @@ def test_generate_ground_point_with_imagecoord(mock_sensor, pt):
...
@@ -37,7 +37,7 @@ def test_generate_ground_point_with_imagecoord(mock_sensor, pt):
@mock.patch.object
(
csm
,
'
get_radii
'
,
return_value
=
(
10
,
10
))
@mock.patch.object
(
csm
,
'
get_radii
'
,
return_value
=
(
10
,
10
))
@mock.patch
(
'
pyproj.transformer.Transformer.transform
'
,
return_value
=
(
0
,
0
,
0
))
@mock.patch
(
'
pyproj.transformer.Transformer.transform
'
,
return_value
=
(
0
,
0
,
0
))
@mock.patch.object
(
csm
,
'
_compute_intersection_distance
'
,
return_value
=
0
)
@mock.patch.object
(
csm
,
'
_compute_intersection_distance
'
,
return_value
=
0
)
def
test_generate_ground_point_with_dtm
(
mock_dem
,
mock_sensor
,
pt
):
def
test_generate_ground_point_with_dtm
(
mock_sensor
,
pt
,
_
):
# Passing the mock_dem fixture fails for some reason. The
# Passing the mock_dem fixture fails for some reason. The
# isinstance(obj, GeoDataset) check fails, causing the singldispath
# isinstance(obj, GeoDataset) check fails, causing the singldispath
# to never dispatch to the func under test.
# to never dispatch to the func under test.
...
@@ -55,7 +55,7 @@ from collections import namedtuple
...
@@ -55,7 +55,7 @@ from collections import namedtuple
@mock.patch.object
(
csm
,
'
get_radii
'
,
return_value
=
(
10
,
10
))
@mock.patch.object
(
csm
,
'
get_radii
'
,
return_value
=
(
10
,
10
))
@mock.patch
(
'
pyproj.transformer.Transformer.transform
'
,
return_value
=
(
0
,
0
,
0
))
@mock.patch
(
'
pyproj.transformer.Transformer.transform
'
,
return_value
=
(
0
,
0
,
0
))
def
test_generate_ground_point_with_dtm_ndv
(
mock_dem
,
mock_sensor
,
pt
):
def
test_generate_ground_point_with_dtm_ndv
(
mock_sensor
,
pt
):
# Passing the mock_dem fixture fails for some reason. The
# Passing the mock_dem fixture fails for some reason. The
# isinstance(obj, GeoDataset) check fails, causing the singldispath
# isinstance(obj, GeoDataset) check fails, causing the singldispath
# to never dispatch to the func under test.
# to never dispatch to the func under test.
...
...
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