Skip to content

Generate a fan triangulation for convex polygons #433

Generate a fan triangulation for convex polygons

Generate a fan triangulation for convex polygons #433

GitHub Actions / JUnit Test Report - python 3.12, latest dependencies failed Aug 13, 2024 in 0s

381 tests run, 379 passed, 1 skipped, 1 failed.

Annotations

Check failure on line 52 in tests/cli/commands/test_plot.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report - python 3.12, latest dependencies

test_plot.test_add_landmarks

AssertionError: assert (0.0, 0.0) == (array('d', [...y('d', [0.0]))
  
  At index 0 diff: 0.0 != array('d', [0.0])
  
  Full diff:
    (
  -     array('d', [0.0]),
  -     array('d', [0.0]),
  +     0.0,
  +     0.0,
    )
Raw output
@pytest.mark.matplotlib
    def test_add_landmarks():
        figure = matplotlib.figure.Figure()
        axes = figure.add_subplot(projection=cartopy.crs.PlateCarree())
    
        landmarks = [
            ('Origin', shapely.Point(0, 0)),
            ('São Tomé and Príncipe', shapely.Point(6.607735, 0.2633684)),
            ('San Antonio de Palé', shapely.Point(5.640007, -1.428858)),
            ('Bela Vista', shapely.Point(7.410149, 1.614794)),
            ('Bioko', shapely.Point(8.745365, 3.433421)),
        ]
        add_landmarks(axes, landmarks)
    
        assert len(landmarks) == len(axes.texts)
        for landmark, text in zip(landmarks, axes.texts):
            assert text.get_text() == landmark[0]
>           assert text.xy == landmark[1].coords.xy
E           AssertionError: assert (0.0, 0.0) == (array('d', [...y('d', [0.0]))
E             
E             At index 0 diff: 0.0 != array('d', [0.0])
E             
E             Full diff:
E               (
E             -     array('d', [0.0]),
E             -     array('d', [0.0]),
E             +     0.0,
E             +     0.0,
E               )

tests/test_plot.py:52: AssertionError