Skip to content

Commit

Permalink
remove one test
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Oct 23, 2024
1 parent 242e190 commit e9d4861
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,6 @@ def test_get_sites(self, db_session):
assert sites[0].asset_type.name == "pv"
assert sites[1].asset_type.name == "wind"

def test_get_sites_only_one_asset_available(self, db_session, caplog):
"""Test for getting sites where only one asset is available"""

# Remove PV sites
db_session.query(SiteSQL).filter(SiteSQL.asset_type == "pv").delete()

sites = get_sites(db_session)
sites = sorted(sites, key=lambda s: s.asset_type.name)

assert len(sites) == 1
assert sites[0].asset_type.name == "wind"
assert "Could not find site for asset type: pv" in caplog.text


class TestFetchData:
"""
Expand Down

0 comments on commit e9d4861

Please sign in to comment.