Skip to content

Commit

Permalink
Update/fix Legistar tests and fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
zstumgoren committed Jun 20, 2023
1 parent 544c8cc commit e25e06c
Show file tree
Hide file tree
Showing 9 changed files with 191,870 additions and 63 deletions.
6,002 changes: 5,992 additions & 10 deletions tests/cassettes/test_legistar_site/test_multiyear_scrape.yaml

Large diffs are not rendered by default.

33,425 changes: 33,417 additions & 8 deletions tests/cassettes/test_legistar_site/test_scrape_current_day_by_default.yaml

Large diffs are not rendered by default.

21,408 changes: 21,402 additions & 6 deletions tests/cassettes/test_legistar_site/test_scrape_defaults.yaml

Large diffs are not rendered by default.

21,401 changes: 21,395 additions & 6 deletions tests/cassettes/test_legistar_site/test_scrape_download_default.yaml

Large diffs are not rendered by default.

25,422 changes: 25,414 additions & 8 deletions tests/cassettes/test_legistar_site/test_scrape_download_filter_size.yaml

Large diffs are not rendered by default.

29,443 changes: 29,435 additions & 8 deletions tests/cassettes/test_legistar_site/test_scrape_download_filter_type.yaml

Large diffs are not rendered by default.

33,424 changes: 33,416 additions & 8 deletions tests/cassettes/test_legistar_site/test_scrape_download_true.yaml

Large diffs are not rendered by default.

21,402 changes: 21,396 additions & 6 deletions tests/cassettes/test_legistar_site/test_scrape_no_meetings_for_date.yaml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions tests/test_legistar_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ def test_scrape_defaults():
site = LegistarSite(url, **config)
assets = site.scrape(start_date, end_date)
# 4 agendas and 1 minutes doc
assert len(assets) == 5
assert len(assets) == 10
doc_types = {"agenda": 0, "minutes": 0}
for asset in assets:
doc_types[asset.asset_type] += 1
assert doc_types == {"agenda": 4, "minutes": 1}
assert doc_types == {"agenda": 8, "minutes": 2}
agenda = [
asset
for asset in assets
Expand Down Expand Up @@ -162,4 +162,4 @@ def test_multiyear_scrape(tmpdir):
end_date = "2022-01-04"
site = LegistarSite(url, **config)
assets = site.scrape(start_date=start_date, end_date=end_date)
assert len(assets) == 4
assert len(assets) == 6

0 comments on commit e25e06c

Please sign in to comment.