Skip to content

Commit

Permalink
Revert hrefs back to single line
Browse files Browse the repository at this point in the history
Pytest interprets a multiline string differently than a string on a single line. Reverting these hrefs back to single lines ensures that these hrefs (ie. our expected data) match our fixture data and the tests pass. Adding "# noqa" prevents the flake8 error/warning that the lines are too long.
  • Loading branch information
SimmonsRitchie committed Dec 21, 2023
1 parent 5b6e964 commit 097ecd1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/test_il_commerce.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,19 @@ def test_source():
def test_links():
assert parsed_item["links"] == [
{
"href": "https://www.icc.illinois.gov/efiling/agenda/public/ \
coverletter?agid=21912",
"href": "https://www.icc.illinois.gov/efiling/agenda/public/coverletter?agid=21912", # noqa
"title": "Public Utility Cover Letter",
},
{
"href": "https://www.icc.illinois.gov/efiling/agenda/public/ \
agendareport?agid=21912",
"href": "https://www.icc.illinois.gov/efiling/agenda/public/agendareport?agid=21912", # noqa
"title": "Regular Open Meeting Agenda",
},
{
"href": "https://www.icc.illinois.gov/efiling/agenda/public/ \
coverletter?agid=21938",
"href": "https://www.icc.illinois.gov/efiling/agenda/public/coverletter?agid=21938", # noqa
"title": "Transportation Cover Letter",
},
{
"href": "https://www.icc.illinois.gov/efiling/agenda/public/ \
agendareport?agid=21938",
"href": "https://www.icc.illinois.gov/efiling/agenda/public/agendareport?agid=21938", # noqa
"title": "Bench Agenda",
},
]
Expand Down

0 comments on commit 097ecd1

Please sign in to comment.