Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

SunPositionAndHillshadeTestCase failing in Pro #564

Open
csmoore opened this issue Aug 8, 2017 · 0 comments
Open

SunPositionAndHillshadeTestCase failing in Pro #564

csmoore opened this issue Aug 8, 2017 · 0 comments

Comments

@csmoore
Copy link
Member

csmoore commented Aug 8, 2017

SunPositionAndHillshadeTestCase is failing in Pro because it is returning different layer statistics

Possible Solution

Steps to Reproduce (for bugs)

  1. In Pro python environment, run test case: SunPositionAndHillshadeTestCase individually -or- TestKickPro.bat
  2. Observe assertion errors/failures below at test code section
INFO: 2017-08-08 10:28:35,589 PRO =======================================
INFO: 2017-08-08 10:28:37,189 Running tool (Sun Position and Hillshade)
INFO: 2017-08-08 10:28:48,339 Comparing expected values with tool results from 2015-07-30 14:28:36 in (UTC+4:30) Afghanistan
INFO: 2017-08-08 10:28:52,162 
RESULTS =================================================
Number of tests run: 1
Number succeeded: 0
Number of errors: 0
Number of failures: 1
Number of tests skipped: 0
Percent passing: 0.0
=========================================================

ERROR: 2017-08-08 10:28:52,162 FAILURES ================================================
ERROR: 2017-08-08 10:28:52,163 test_sun_position_analysis (sun_position_analysis_tests.SunPositionAndHillshadeTestCase.SunPositionAndHillshadeTestCase)
ERROR: 2017-08-08 10:28:52,163 Traceback (most recent call last):
ERROR: 2017-08-08 10:28:52,163   File "C:\Users\Chris\Documents\GitHub\solutions-geoprocessing-toolbox\utils\test\sun_position_analysis_tests\SunPositionAndHillshadeTestCase.py", line 129, in test_sun_position_analysis
ERROR: 2017-08-08 10:28:52,164     self.assertEqual(rasMaximum, float(0))
ERROR: 2017-08-08 10:28:52,164 AssertionError: -2.0 != 0.0
INFO: 2017-08-08 10:28:52,164 END OF TEST =========================================

Context

Your Environment

  • Version used: Pro 2.0 / Win 10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant