Ejemplo n.º 1
0
def test_static_geod_plotter_draws_parametric_plot(mock_show, dummy_geod):
    geod = dummy_geod

    sgpl = StaticGeodesicPlotter()
    sgpl.parametric_plot(geod)
    fig = sgpl.show()

    mock_show.assert_called_with()
Ejemplo n.º 2
0
def test_plot_geod_save_saves_parametric_plot(mock_save, dummy_geod):
    geod = dummy_geod

    sgpl = StaticGeodesicPlotter()
    sgpl.parametric_plot(geod)
    name = "Parametric.png"
    sgpl.save()

    mock_save.assert_called_with(name)
    assert sgpl.ax.name != "3d"