Closed JN-Hernandez closed 5 months ago
CI fails a couple of tests:
test_impatiently_geocode_azavea (omgeo.tests.tests.GeocoderTest) ... ok
======================================================================
FAIL: test_geocode_esri_wgs_senado_mx (omgeo.tests.tests.GeocoderTest)
Attempt to geocode ``Paseo de la Reforma 135, Tabacalera,
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/python-omgeo/python-omgeo/omgeo/tests/tests.py", line 183, in test_geocode_esri_wgs_senado_mx
self.assertEqual(search_text in candidates[0].match_addr, True,
AssertionError: False != True : "Paseo de la Reforma 135" not found in match_addr. Got "Paseo de La Reforma 135, Tabacalera, Ciudad de México, Cuauhtémoc, Ciudad de México, 06030".
======================================================================
FAIL: test_geocode_structured_esri_wgs_senado_mx (omgeo.tests.tests.GeocoderTest)
Attempt to geocode ``Paseo de la Reforma 135, Tabacalera,
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/python-omgeo/python-omgeo/omgeo/tests/tests.py", line 196, in test_geocode_structured_esri_wgs_senado_mx
self.assertEqual(search_text in candidates[0].match_addr, True,
AssertionError: False != True : "Paseo de la Reforma 135" not found in match_addr. Got "Paseo de La Reforma 135, Tabacalera, Ciudad de México, Cuauhtémoc, Ciudad de México, 06030".
----------------------------------------------------------------------
Ran 53 tests in 5.887s
FAILED (failures=2, skipped=14)
Test failed: <unittest.runner.TextTestResult run=53 errors=0 failures=2>
error: Test failed: <unittest.runner.TextTestResult run=53 errors=0 failures=2>
Error: Process completed with exit code 1.
Uncertain if this is because the data being returned has changed or if a function isn't parsing out the data returned correctly. Additional investigation needed.
Confirmed with @rajadain that the data being returned changed for the affected tests and that we should simply update the tests to match expected return.
Overview
The
python-omgeo
Python packages is published via the Azavea PyPI account, however recent builds of these projects are failing because PyPI has changed from username/password authentication to token based and trusted-publisher based authentication. This PR will address updating the integration.Closes #71
Demo
The Problem:
Proposed Solution:
Notes
workflow.yml
file by removing thewith:
clause from the Upload release to TestPyPI step and update the step name accordingly. This will switch the upload from TestPyPI to PyPI.Testing Instructions
TestPyPI Testing - Manual Release:
Checklist
CHANGES.txt
has been updated