From f38c84c8c3119d7ed4e5c8a62b358f011d5f3234 Mon Sep 17 00:00:00 2001 From: Elliot <3186037+elliot-100@users.noreply.github.com> Date: Sat, 13 Jul 2024 16:07:38 +0100 Subject: [PATCH] tests: use public API import path --- CHANGELOG.md | 1 + tests/test_manager.py | 6 ++---- tests/test_profile.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d08d68..0e6bfae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ Historic and pre-release versions aren't necessarily included. ### Fixed - Tests: warnings because Beautiful Soup parser wasn't specified +- Tests didn't use public API for imports ## [0.9.0] - 2023-12-20 diff --git a/tests/test_manager.py b/tests/test_manager.py index 564ceeb..54f4c26 100644 --- a/tests/test_manager.py +++ b/tests/test_manager.py @@ -2,10 +2,8 @@ import pytest -from britishcycling_clubs.manager import ( - _process_manager_member_counts, - club_manager_url_via_login, -) +from britishcycling_clubs import club_manager_url_via_login +from britishcycling_clubs.manager import _process_manager_member_counts def test_club_manager_url_via_login__happy_path() -> None: diff --git a/tests/test_profile.py b/tests/test_profile.py index a16ea72..cce2efd 100644 --- a/tests/test_profile.py +++ b/tests/test_profile.py @@ -2,10 +2,10 @@ from bs4 import BeautifulSoup +from britishcycling_clubs import club_profile_url from britishcycling_clubs.profile import ( _club_name_from_profile, _total_members_from_profile, - club_profile_url, )