Skip to content

Commit

Permalink
Merge pull request #86 from elliot-100/85-tests-dont-specify-beautifu…
Browse files Browse the repository at this point in the history
…lsoup-parser

Fix: Tests don't specify BeautifulSoup parser
  • Loading branch information
elliot-100 authored Jul 4, 2024
2 parents eaffd1a + 5287fc8 commit f18ab9a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,17 @@ def test_club_profile_url__happy_path() -> None:

def test__club_name_from_profile__happy_path() -> None:
"""Test that club name is returned from 'profile' soup."""
profile_soup = BeautifulSoup(PROFILE_PAGE_EXTRACT)
profile_soup = BeautifulSoup(
PROFILE_PAGE_EXTRACT,
"html.parser",
)
assert _club_name_from_profile(profile_soup) == "My Cycling Club"


def test__total_members_from_profile__happy_path() -> None:
"""Test that total members count is returned from 'profile' soup."""
profile_soup = BeautifulSoup(PROFILE_PAGE_EXTRACT)
profile_soup = BeautifulSoup(
PROFILE_PAGE_EXTRACT,
"html.parser",
)
assert _total_members_from_profile(profile_soup) == 42

0 comments on commit f18ab9a

Please sign in to comment.