From 5287fc8ed644e055b8efeb4b92ec2c9f795c5ef1 Mon Sep 17 00:00:00 2001 From: Elliot <3186037+elliot-100@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:12:59 +0100 Subject: [PATCH] tests: fix: specify parser --- tests/test_profile.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_profile.py b/tests/test_profile.py index b1e8666..a16ea72 100644 --- a/tests/test_profile.py +++ b/tests/test_profile.py @@ -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