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:38:23 UTC

[incubator-sdap-nexus] branch master updated: Fixed failing matchup test. Matchup nowuses 'lon' instead of 'x' (#161)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new f124c4d  Fixed failing matchup test. Matchup nowuses 'lon' instead of 'x' (#161)
f124c4d is described below

commit f124c4d89613c432e81e84818a3a0662ca5935f2
Author: Stepheny Perez <sk...@users.noreply.github.com>
AuthorDate: Wed Jun 8 17:38:19 2022 -0700

    Fixed failing matchup test. Matchup nowuses 'lon' instead of 'x' (#161)
---
 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