Skip to content

Commit

Permalink
Tests bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgarde committed May 1, 2023
1 parent cadd77a commit e221e9d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_submit_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

MockJob = namedtuple('MockJob', ['job_id', 'status'])
submit_evaluate.raster_eval_job_type.submit_job.side_effect = \
lambda _self: MockJob(
lambda tag: MockJob(
job_id=str(uuid4()),
status='job-queued'
)
Expand Down Expand Up @@ -67,9 +67,9 @@ def test_valid_submit(self):

# Check that ES search call performed with proper transformations
valid_searches = [
'SWOT_L2_HR_PIXCVec_1_2_4L_*',
'SWOT_L2_HR_PIXCVec_4_5_10L_*',
'SWOT_L2_HR_PIXCVec_7_8_16L_*'
'SWOT_L2_HR_PIXCVec_001_002_004L_*',
'SWOT_L2_HR_PIXCVec_004_005_010L_*',
'SWOT_L2_HR_PIXCVec_007_008_016L_*'
]
for call in search_ds_mock.call_args_list:
search = call.args[0]
Expand All @@ -91,8 +91,8 @@ def test_no_pixcvec_error(self):
still fulfilling the valid request
'''
dataset_results = {
'SWOT_L2_HR_PIXCVec_1_2_4L_*': {},
'SWOT_L2_HR_PIXCVec_4_5_10L_*': None
'SWOT_L2_HR_PIXCVec_001_002_004L_*': {},
'SWOT_L2_HR_PIXCVec_004_005_010L_*': None
}
search_ds_mock.side_effect = dataset_results.pop

Expand Down

0 comments on commit e221e9d

Please sign in to comment.