From 8bdf3be626a9314061fe2c828030008f1a3b96ab Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Tue, 24 Sep 2024 12:27:04 +0100 Subject: [PATCH] skip pvoutput.org tests --- tests/intergration/test_app.py | 3 +++ tests/intergration/test_pv_systems_integration.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/tests/intergration/test_app.py b/tests/intergration/test_app.py index 27a648e..3646387 100644 --- a/tests/intergration/test_app.py +++ b/tests/intergration/test_app.py @@ -1,9 +1,11 @@ +import pytest from click.testing import CliRunner from pvsite_datamodel.sqlmodels import GenerationSQL, SiteSQL from pvconsumer.app import app, pull_data_and_save +@pytest.skip("This test uses pvoutput.org which we not longer use") def test_pull_data(db_session, sites): pull_data_and_save(pv_systems=sites, session=db_session, provider="pvoutput.org") @@ -18,6 +20,7 @@ def test_pull_data_solar_sheffield(db_session, sites): assert len(pv_yields) > 0 +@pytest.skip("This test uses pvoutput.org which we not longer use") def test_app(db_connection, filename, sites): runner = CliRunner() response = runner.invoke( diff --git a/tests/intergration/test_pv_systems_integration.py b/tests/intergration/test_pv_systems_integration.py index 90e630b..8e9c740 100644 --- a/tests/intergration/test_pv_systems_integration.py +++ b/tests/intergration/test_pv_systems_integration.py @@ -1,6 +1,8 @@ +import pytest from pvconsumer.pv_systems import get_pv_systems +@pytest.skip("This test uses pvoutput.org which we not longer use") def test_get_pv_systems(db_session, filename): pv_systems = get_pv_systems(session=db_session, filename=filename, provider="pvoutput.org")