You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by sk...@apache.org on 2022/06/09 00:19:43 UTC

[incubator-sdap-nexus] 01/01: Fixed failing matchup test. Matchup nowuses 'lon' instead of 'x'

This is an automated email from the ASF dual-hosted git repository.

skperez pushed a commit to branch fix-failing-test
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git

commit ac02795125eea7bdeeb7bd7c5ffaa74864cc25e5
Author: skorper <st...@gmail.com>
AuthorDate: Wed Jun 8 17:18:42 2022 -0700

    Fixed failing matchup test. Matchup nowuses 'lon' instead of 'x'
---
 CHANGELOG.md                                    | 1 +
 analysis/tests/algorithms_spark/test_matchup.py | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 008cdf1..0153018 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,4 +13,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Deprecated
 ### Removed
 ### Fixed
+- Fix failing test_matchup unit test
 ### Security
\ No newline at end of file
diff --git a/analysis/tests/algorithms_spark/test_matchup.py b/analysis/tests/algorithms_spark/test_matchup.py
index db35809..7aee128 100644
--- a/analysis/tests/algorithms_spark/test_matchup.py
+++ b/analysis/tests/algorithms_spark/test_matchup.py
@@ -232,11 +232,11 @@ def test_calc(test_matchup_args):
         assert len(json_matchup_result['data'][1]['matches']) == 2
 
         for data in json_matchup_result['data']:
-            assert data['x'] == '-180'
-            assert data['y'] == '-90'
+            assert data['lon'] == '-180'
+            assert data['lat'] == '-90'
             for matches in data['matches']:
-                assert matches['x'] == '-180'
-                assert matches['y'] == '-90'
+                assert matches['lon'] == '-180'
+                assert matches['lat'] == '-90'
 
         assert json_matchup_result['data'][0]['primary'][0]['variable_value'] == 10.0
         assert json_matchup_result['data'][1]['primary'][0]['variable_value'] == 20.0