Skip to content

Commit

Permalink
Ignore houston tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
evamaxfield committed Dec 7, 2023
1 parent 03d782a commit 3bbaeea
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions cdp_scrapers/tests/test_scrapers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,53 @@

import pytest

from cdp_scrapers.instances.houston import HoustonScraper
# from cdp_scrapers.instances.houston import HoustonScraper
from cdp_scrapers.instances.kingcounty import KingCountyScraper
from cdp_scrapers.instances.portland import PortlandScraper
from cdp_scrapers.instances.seattle import SeattleScraper


@pytest.mark.flaky(reruns=3, reruns_delay=15)
@pytest.mark.parametrize(
"start_date_time, end_date_time, expected_meetings,"
"expected_minutes_item_in_first_meeting, expected_first_supporting_file",
[
(
datetime(2022, 1, 10),
datetime(2022, 1, 12),
1,
29,
"https://houston.novusagenda.com/agendapublic/"
"CoverSheet.aspx?ItemID=24626&MeetingID=522",
),
(
datetime(2022, 11, 7),
datetime(2022, 11, 16),
2,
33,
"https://houston.novusagenda.com/agendapublic/"
"CoverSheet.aspx?ItemID=27102&MeetingID=566",
),
],
)
def test_houston_scraper(
start_date_time: datetime,
end_date_time: datetime,
expected_meetings,
expected_minutes_item_in_first_meeting,
expected_first_supporting_file,
):
houston = HoustonScraper()
houston_events = houston.get_events(start_date_time, end_date_time)
assert len(houston_events) == expected_meetings
assert (
len(houston_events[0].event_minutes_items)
== expected_minutes_item_in_first_meeting
)
assert (
houston_events[0].event_minutes_items[0].supporting_files
== expected_first_supporting_file
)
# @pytest.mark.flaky(reruns=3, reruns_delay=15)
# @pytest.mark.parametrize(
# "start_date_time, end_date_time, expected_meetings,"
# "expected_minutes_item_in_first_meeting, expected_first_supporting_file",
# [
# (
# datetime(2022, 1, 10),
# datetime(2022, 1, 12),
# 1,
# 29,
# "https://houston.novusagenda.com/agendapublic/"
# "CoverSheet.aspx?ItemID=24626&MeetingID=522",
# ),
# (
# datetime(2022, 11, 7),
# datetime(2022, 11, 16),
# 2,
# 33,
# "https://houston.novusagenda.com/agendapublic/"
# "CoverSheet.aspx?ItemID=27102&MeetingID=566",
# ),
# ],
# )
# def test_houston_scraper(
# start_date_time: datetime,
# end_date_time: datetime,
# expected_meetings,
# expected_minutes_item_in_first_meeting,
# expected_first_supporting_file,
# ):
# houston = HoustonScraper()
# houston_events = houston.get_events(start_date_time, end_date_time)
# assert len(houston_events) == expected_meetings
# assert (
# len(houston_events[0].event_minutes_items)
# == expected_minutes_item_in_first_meeting
# )
# assert (
# houston_events[0].event_minutes_items[0].supporting_files
# == expected_first_supporting_file
# )


@pytest.mark.flaky(reruns=3, reruns_delay=15)
Expand Down

0 comments on commit 3bbaeea

Please sign in to comment.