diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index 44d2689..4ade288 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -244,7 +244,7 @@ def mock_logger(): @fixture def base_resource(mock_oauth_session, mock_logger): """Creates a resource instance with mocked dependencies""" - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return BaseResource(mock_oauth_session, "en_US", "en_US") ``` diff --git a/docs/LINTING.md b/docs/LINTING.md index 69a0d43..8a6b5d7 100644 --- a/docs/LINTING.md +++ b/docs/LINTING.md @@ -53,7 +53,7 @@ from requests_oauthlib import OAuth2Session # Local imports from fitbit_client.exceptions import FitbitAPIException -from fitbit_client.resources.base import BaseResource +from fitbit_client.resources._base import BaseResource ``` ## Documentation Requirements diff --git a/docs/VALIDATIONS.md b/docs/VALIDATIONS.md index 15feb94..3c77015 100644 --- a/docs/VALIDATIONS.md +++ b/docs/VALIDATIONS.md @@ -61,7 +61,7 @@ except InvalidDateRangeException as e: The library provides enums for many parameters to ensure valid values: ```python -from fitbit_client.resources.constants import Period, ActivityGoalType +from fitbit_client.resources._constants import Period, ActivityGoalType # Valid - using provided enum client.activity.get_activity_timeseries_by_date( diff --git a/fitbit_client/resources/base.py b/fitbit_client/resources/_base.py similarity index 99% rename from fitbit_client/resources/base.py rename to fitbit_client/resources/_base.py index 8db25c3..a7b14e4 100644 --- a/fitbit_client/resources/base.py +++ b/fitbit_client/resources/_base.py @@ -1,4 +1,4 @@ -# fitbit_client/resources/base.py +# fitbit_client/resources/_base.py # Standard library imports from datetime import datetime diff --git a/fitbit_client/resources/constants.py b/fitbit_client/resources/_constants.py similarity index 99% rename from fitbit_client/resources/constants.py rename to fitbit_client/resources/_constants.py index ad843bc..a7a4506 100644 --- a/fitbit_client/resources/constants.py +++ b/fitbit_client/resources/_constants.py @@ -1,4 +1,4 @@ -# fitbit_client/resources/constants.py +# fitbit_client/resources/_constants.py # Standard library imports from enum import Enum diff --git a/fitbit_client/resources/pagination.py b/fitbit_client/resources/_pagination.py similarity index 98% rename from fitbit_client/resources/pagination.py rename to fitbit_client/resources/_pagination.py index 054d514..59065c7 100644 --- a/fitbit_client/resources/pagination.py +++ b/fitbit_client/resources/_pagination.py @@ -1,4 +1,4 @@ -# fitbit_client/resources/pagination.py +# fitbit_client/resources/_pagination.py # Standard library imports from collections.abc import Iterator @@ -21,7 +21,7 @@ if TYPE_CHECKING: # Local imports - only imported during type checking # Local imports - from fitbit_client.resources.base import BaseResource + from fitbit_client.resources._base import BaseResource class PaginatedIterator(Iterator[JSONDict]): diff --git a/fitbit_client/resources/active_zone_minutes.py b/fitbit_client/resources/active_zone_minutes.py index 1b30798..5f5357a 100644 --- a/fitbit_client/resources/active_zone_minutes.py +++ b/fitbit_client/resources/active_zone_minutes.py @@ -7,8 +7,8 @@ # Local imports from fitbit_client.exceptions import IntradayValidationException -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import Period +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import Period from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.date_validation import validate_date_range_params from fitbit_client.utils.types import JSONDict diff --git a/fitbit_client/resources/activity.py b/fitbit_client/resources/activity.py index c3b4fe7..b6abf35 100644 --- a/fitbit_client/resources/activity.py +++ b/fitbit_client/resources/activity.py @@ -12,11 +12,11 @@ # Local imports from fitbit_client.exceptions import MissingParameterException from fitbit_client.exceptions import ValidationException -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import ActivityGoalPeriod -from fitbit_client.resources.constants import ActivityGoalType -from fitbit_client.resources.constants import SortDirection -from fitbit_client.resources.pagination import create_paginated_iterator +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import ActivityGoalPeriod +from fitbit_client.resources._constants import ActivityGoalType +from fitbit_client.resources._constants import SortDirection +from fitbit_client.resources._pagination import create_paginated_iterator from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.pagination_validation import validate_pagination_params from fitbit_client.utils.types import JSONDict @@ -27,7 +27,7 @@ if TYPE_CHECKING: # Local imports - only imported during type checking # Local imports - from fitbit_client.resources.pagination import PaginatedIterator + from fitbit_client.resources._pagination import PaginatedIterator class ActivityResource(BaseResource): diff --git a/fitbit_client/resources/activity_timeseries.py b/fitbit_client/resources/activity_timeseries.py index d6a8015..d7ba673 100644 --- a/fitbit_client/resources/activity_timeseries.py +++ b/fitbit_client/resources/activity_timeseries.py @@ -6,9 +6,9 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import ActivityTimeSeriesPath -from fitbit_client.resources.constants import Period +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import ActivityTimeSeriesPath +from fitbit_client.resources._constants import Period from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.date_validation import validate_date_range_params from fitbit_client.utils.types import JSONDict diff --git a/fitbit_client/resources/body.py b/fitbit_client/resources/body.py index fceae50..fd482de 100644 --- a/fitbit_client/resources/body.py +++ b/fitbit_client/resources/body.py @@ -5,8 +5,8 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import BodyGoalType +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import BodyGoalType from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.types import JSONDict from fitbit_client.utils.types import ParamDict diff --git a/fitbit_client/resources/body_timeseries.py b/fitbit_client/resources/body_timeseries.py index abb60fc..a9bf48c 100644 --- a/fitbit_client/resources/body_timeseries.py +++ b/fitbit_client/resources/body_timeseries.py @@ -5,10 +5,10 @@ # Local imports from fitbit_client.exceptions import ValidationException -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import BodyResourceType -from fitbit_client.resources.constants import BodyTimePeriod -from fitbit_client.resources.constants import MaxRanges +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import BodyResourceType +from fitbit_client.resources._constants import BodyTimePeriod +from fitbit_client.resources._constants import MaxRanges from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.date_validation import validate_date_range from fitbit_client.utils.date_validation import validate_date_range_params diff --git a/fitbit_client/resources/breathing_rate.py b/fitbit_client/resources/breathing_rate.py index d4ce868..d322ae8 100644 --- a/fitbit_client/resources/breathing_rate.py +++ b/fitbit_client/resources/breathing_rate.py @@ -5,7 +5,7 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource +from fitbit_client.resources._base import BaseResource from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.date_validation import validate_date_range_params from fitbit_client.utils.types import JSONDict diff --git a/fitbit_client/resources/cardio_fitness_score.py b/fitbit_client/resources/cardio_fitness_score.py index 842f869..f5b12d1 100644 --- a/fitbit_client/resources/cardio_fitness_score.py +++ b/fitbit_client/resources/cardio_fitness_score.py @@ -5,7 +5,7 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource +from fitbit_client.resources._base import BaseResource from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.date_validation import validate_date_range_params from fitbit_client.utils.types import JSONDict diff --git a/fitbit_client/resources/device.py b/fitbit_client/resources/device.py index ed3ec73..8a18aa6 100644 --- a/fitbit_client/resources/device.py +++ b/fitbit_client/resources/device.py @@ -6,8 +6,8 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import WeekDay +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import WeekDay from fitbit_client.utils.types import JSONDict from fitbit_client.utils.types import JSONList diff --git a/fitbit_client/resources/electrocardiogram.py b/fitbit_client/resources/electrocardiogram.py index 3217477..b33023b 100644 --- a/fitbit_client/resources/electrocardiogram.py +++ b/fitbit_client/resources/electrocardiogram.py @@ -9,9 +9,9 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import SortDirection -from fitbit_client.resources.pagination import create_paginated_iterator +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import SortDirection +from fitbit_client.resources._pagination import create_paginated_iterator from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.pagination_validation import validate_pagination_params from fitbit_client.utils.types import JSONDict @@ -21,7 +21,7 @@ if TYPE_CHECKING: # Local imports - only imported during type checking # Local imports - from fitbit_client.resources.pagination import PaginatedIterator + from fitbit_client.resources._pagination import PaginatedIterator class ElectrocardiogramResource(BaseResource): diff --git a/fitbit_client/resources/friends.py b/fitbit_client/resources/friends.py index d144756..308d8b8 100644 --- a/fitbit_client/resources/friends.py +++ b/fitbit_client/resources/friends.py @@ -4,7 +4,7 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource +from fitbit_client.resources._base import BaseResource from fitbit_client.utils.types import JSONDict diff --git a/fitbit_client/resources/heartrate_timeseries.py b/fitbit_client/resources/heartrate_timeseries.py index 2d89c48..1012fe7 100644 --- a/fitbit_client/resources/heartrate_timeseries.py +++ b/fitbit_client/resources/heartrate_timeseries.py @@ -7,8 +7,8 @@ # Local imports from fitbit_client.exceptions import IntradayValidationException from fitbit_client.exceptions import ParameterValidationException -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import Period +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import Period from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.date_validation import validate_date_range_params from fitbit_client.utils.types import JSONDict diff --git a/fitbit_client/resources/heartrate_variability.py b/fitbit_client/resources/heartrate_variability.py index d2d3c74..fb647d2 100644 --- a/fitbit_client/resources/heartrate_variability.py +++ b/fitbit_client/resources/heartrate_variability.py @@ -4,7 +4,7 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource +from fitbit_client.resources._base import BaseResource from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.date_validation import validate_date_range_params from fitbit_client.utils.types import JSONDict diff --git a/fitbit_client/resources/intraday.py b/fitbit_client/resources/intraday.py index 86a7fd5..1c1e71a 100644 --- a/fitbit_client/resources/intraday.py +++ b/fitbit_client/resources/intraday.py @@ -7,9 +7,9 @@ # Local imports from fitbit_client.exceptions import IntradayValidationException -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import IntradayDetailLevel -from fitbit_client.resources.constants import MaxRanges +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import IntradayDetailLevel +from fitbit_client.resources._constants import MaxRanges from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.date_validation import validate_date_range_params from fitbit_client.utils.types import JSONDict diff --git a/fitbit_client/resources/irregular_rhythm_notifications.py b/fitbit_client/resources/irregular_rhythm_notifications.py index f524fae..cf9ef26 100644 --- a/fitbit_client/resources/irregular_rhythm_notifications.py +++ b/fitbit_client/resources/irregular_rhythm_notifications.py @@ -7,9 +7,9 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import SortDirection -from fitbit_client.resources.pagination import create_paginated_iterator +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import SortDirection +from fitbit_client.resources._pagination import create_paginated_iterator from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.pagination_validation import validate_pagination_params from fitbit_client.utils.types import JSONDict @@ -19,7 +19,7 @@ if TYPE_CHECKING: # Local imports - only imported during type checking # Local imports - from fitbit_client.resources.pagination import PaginatedIterator + from fitbit_client.resources._pagination import PaginatedIterator class IrregularRhythmNotificationsResource(BaseResource): diff --git a/fitbit_client/resources/nutrition.py b/fitbit_client/resources/nutrition.py index ed70e09..7f1af53 100644 --- a/fitbit_client/resources/nutrition.py +++ b/fitbit_client/resources/nutrition.py @@ -11,12 +11,12 @@ from fitbit_client.exceptions import ClientValidationException from fitbit_client.exceptions import MissingParameterException from fitbit_client.exceptions import ValidationException -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import FoodFormType -from fitbit_client.resources.constants import FoodPlanIntensity -from fitbit_client.resources.constants import MealType -from fitbit_client.resources.constants import NutritionalValue -from fitbit_client.resources.constants import WaterUnit +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import FoodFormType +from fitbit_client.resources._constants import FoodPlanIntensity +from fitbit_client.resources._constants import MealType +from fitbit_client.resources._constants import NutritionalValue +from fitbit_client.resources._constants import WaterUnit from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.helpers import to_camel_case from fitbit_client.utils.types import JSONDict diff --git a/fitbit_client/resources/nutrition_timeseries.py b/fitbit_client/resources/nutrition_timeseries.py index 331c35d..6fa470e 100644 --- a/fitbit_client/resources/nutrition_timeseries.py +++ b/fitbit_client/resources/nutrition_timeseries.py @@ -4,9 +4,9 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import NutritionResource -from fitbit_client.resources.constants import Period +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import NutritionResource +from fitbit_client.resources._constants import Period from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.date_validation import validate_date_range_params from fitbit_client.utils.types import JSONDict diff --git a/fitbit_client/resources/sleep.py b/fitbit_client/resources/sleep.py index 1586dc3..fada41b 100644 --- a/fitbit_client/resources/sleep.py +++ b/fitbit_client/resources/sleep.py @@ -10,9 +10,9 @@ # Local imports from fitbit_client.exceptions import ParameterValidationException -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import SortDirection -from fitbit_client.resources.pagination import create_paginated_iterator +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import SortDirection +from fitbit_client.resources._pagination import create_paginated_iterator from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.date_validation import validate_date_range_params from fitbit_client.utils.pagination_validation import validate_pagination_params @@ -23,7 +23,7 @@ if TYPE_CHECKING: # Local imports - only imported during type checking # Local imports - from fitbit_client.resources.pagination import PaginatedIterator + from fitbit_client.resources._pagination import PaginatedIterator class SleepResource(BaseResource): diff --git a/fitbit_client/resources/spo2.py b/fitbit_client/resources/spo2.py index ede8486..5d9ded9 100644 --- a/fitbit_client/resources/spo2.py +++ b/fitbit_client/resources/spo2.py @@ -4,7 +4,7 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource +from fitbit_client.resources._base import BaseResource from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.date_validation import validate_date_range_params from fitbit_client.utils.types import JSONDict diff --git a/fitbit_client/resources/subscription.py b/fitbit_client/resources/subscription.py index 55a0b09..1b8093e 100644 --- a/fitbit_client/resources/subscription.py +++ b/fitbit_client/resources/subscription.py @@ -5,8 +5,8 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import SubscriptionCategory +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import SubscriptionCategory from fitbit_client.utils.types import JSONDict diff --git a/fitbit_client/resources/temperature.py b/fitbit_client/resources/temperature.py index 01f44b9..9b9a70f 100644 --- a/fitbit_client/resources/temperature.py +++ b/fitbit_client/resources/temperature.py @@ -4,7 +4,7 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource +from fitbit_client.resources._base import BaseResource from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.date_validation import validate_date_range_params from fitbit_client.utils.types import JSONDict diff --git a/fitbit_client/resources/user.py b/fitbit_client/resources/user.py index cb4b13f..653aa2b 100644 --- a/fitbit_client/resources/user.py +++ b/fitbit_client/resources/user.py @@ -5,10 +5,10 @@ from typing import cast # Local imports -from fitbit_client.resources.base import BaseResource -from fitbit_client.resources.constants import ClockTimeFormat -from fitbit_client.resources.constants import Gender -from fitbit_client.resources.constants import StartDayOfWeek +from fitbit_client.resources._base import BaseResource +from fitbit_client.resources._constants import ClockTimeFormat +from fitbit_client.resources._constants import Gender +from fitbit_client.resources._constants import StartDayOfWeek from fitbit_client.utils.date_validation import validate_date_param from fitbit_client.utils.types import JSONDict from fitbit_client.utils.types import ParamDict diff --git a/fitbit_client/utils/pagination_validation.py b/fitbit_client/utils/pagination_validation.py index 9a6257f..1df0fe3 100644 --- a/fitbit_client/utils/pagination_validation.py +++ b/fitbit_client/utils/pagination_validation.py @@ -11,7 +11,7 @@ # Local imports from fitbit_client.exceptions import PaginationException -from fitbit_client.resources.constants import SortDirection +from fitbit_client.resources._constants import SortDirection # Type variables for decorator typing P = ParamSpec("P") diff --git a/tests/auth/__init__.py b/tests/auth/__init__.py deleted file mode 100644 index fb1c3cd..0000000 --- a/tests/auth/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/auth/__init__.py diff --git a/tests/conftest.py b/tests/conftest.py index 03f08ba..6a67933 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -14,7 +14,7 @@ from fitbit_client.resources.active_zone_minutes import ActiveZoneMinutesResource from fitbit_client.resources.activity import ActivityResource from fitbit_client.resources.activity_timeseries import ActivityTimeSeriesResource -from fitbit_client.resources.base import BaseResource +from fitbit_client.resources._base import BaseResource from fitbit_client.resources.body import BodyResource from fitbit_client.resources.body_timeseries import BodyTimeSeriesResource from fitbit_client.resources.breathing_rate import BreathingRateResource @@ -99,7 +99,7 @@ def _create_mock_response( @fixture def base_resource(mock_oauth_session, mock_logger): """Fixture to provide a BaseResource instance with standard locale settings""" - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): resource = BaseResource( oauth_session=mock_oauth_session, locale="en_US", @@ -113,13 +113,13 @@ def base_resource(mock_oauth_session, mock_logger): @fixture def activity_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return ActivityResource(oauth_session=mock_oauth_session, locale="en_US", language="en_US") @fixture def activity_timeseries_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return ActivityTimeSeriesResource( oauth_session=mock_oauth_session, locale="en_US", language="en_US" ) @@ -127,7 +127,7 @@ def activity_timeseries_resource(mock_oauth_session, mock_logger): @fixture def azm_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return ActiveZoneMinutesResource( oauth_session=mock_oauth_session, locale="en_US", language="en_US" ) @@ -135,49 +135,49 @@ def azm_resource(mock_oauth_session, mock_logger): @fixture def body_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return BodyResource(mock_oauth_session, "en_US", "en_US") @fixture def body_timeseries(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return BodyTimeSeriesResource(mock_oauth_session, "en_US", "en_US") @fixture def breathing_rate_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return BreathingRateResource(mock_oauth_session, "en_US", "en_US") @fixture def cardio_fitness_score_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return CardioFitnessScoreResource(mock_oauth_session, "en_US", "en_US") @fixture def device_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return DeviceResource(mock_oauth_session, "en_US", "en_US") @fixture def ecg_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return ElectrocardiogramResource(mock_oauth_session, "en_US", "en_US") @fixture def friends_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return FriendsResource(oauth_session=mock_oauth_session, locale="en_US", language="en_US") @fixture def heartrate_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return HeartrateTimeSeriesResource( oauth_session=mock_oauth_session, locale="en_US", language="en_US" ) @@ -185,59 +185,59 @@ def heartrate_resource(mock_oauth_session, mock_logger): @fixture def hrv_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return HeartrateVariabilityResource(mock_oauth_session, "en_US", "en_US") @fixture def intraday_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return IntradayResource(oauth_session=mock_oauth_session, locale="en_US", language="en_US") @fixture def irn_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return IrregularRhythmNotificationsResource(mock_oauth_session, "en_US", "en_US") @fixture def nutrition_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return NutritionResource(oauth_session=mock_oauth_session, locale="en_US", language="en_US") @fixture def nutrition_timeseries_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return NutritionTimeSeriesResource(mock_oauth_session, "en_US", "en_US") @fixture def sleep_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return SleepResource(mock_oauth_session, "en_US", "en_US") @fixture def spo2_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return SpO2Resource(mock_oauth_session, "en_US", "en_US") @fixture def subscription_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return SubscriptionResource(mock_oauth_session, "en_US", "en_US") @fixture def temperature_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return TemperatureResource(mock_oauth_session, "en_US", "en_US") @fixture def user_resource(mock_oauth_session, mock_logger): - with patch("fitbit_client.resources.base.getLogger", return_value=mock_logger): + with patch("fitbit_client.resources._base.getLogger", return_value=mock_logger): return UserResource(mock_oauth_session, "en_US", "en_US") diff --git a/tests/fitbit_client/__init__.py b/tests/fitbit_client/__init__.py new file mode 100644 index 0000000..4eb9b67 --- /dev/null +++ b/tests/fitbit_client/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/__init__.py diff --git a/tests/fitbit_client/auth/__init__.py b/tests/fitbit_client/auth/__init__.py new file mode 100644 index 0000000..64148fc --- /dev/null +++ b/tests/fitbit_client/auth/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/auth/__init__.py diff --git a/tests/auth/test_callback_handler.py b/tests/fitbit_client/auth/test_callback_handler.py similarity index 99% rename from tests/auth/test_callback_handler.py rename to tests/fitbit_client/auth/test_callback_handler.py index ba49ed0..bc630a1 100644 --- a/tests/auth/test_callback_handler.py +++ b/tests/fitbit_client/auth/test_callback_handler.py @@ -1,4 +1,4 @@ -# tests/auth/test_callback_handler.py +# tests/fitbit_client/auth/test_callback_handler.py # Standard library imports from http.server import BaseHTTPRequestHandler diff --git a/tests/auth/test_callback_server.py b/tests/fitbit_client/auth/test_callback_server.py similarity index 99% rename from tests/auth/test_callback_server.py rename to tests/fitbit_client/auth/test_callback_server.py index 03331e5..25c2492 100644 --- a/tests/auth/test_callback_server.py +++ b/tests/fitbit_client/auth/test_callback_server.py @@ -1,4 +1,4 @@ -# tests/auth/test_callback_server.py +# tests/fitbit_client/auth/test_callback_server.py # Standard library imports from ssl import SSLError diff --git a/tests/auth/test_oauth.py b/tests/fitbit_client/auth/test_oauth.py similarity index 99% rename from tests/auth/test_oauth.py rename to tests/fitbit_client/auth/test_oauth.py index b03fac4..5e6d834 100644 --- a/tests/auth/test_oauth.py +++ b/tests/fitbit_client/auth/test_oauth.py @@ -1,4 +1,4 @@ -# tests/auth/test_oauth.py +# tests/fitbit_client/auth/test_oauth.py # Standard library imports from json import dumps diff --git a/tests/fitbit_client/resources/__init__.py b/tests/fitbit_client/resources/__init__.py new file mode 100644 index 0000000..959477c --- /dev/null +++ b/tests/fitbit_client/resources/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/__init__.py diff --git a/tests/fitbit_client/resources/active_zone_minutes/__init__.py b/tests/fitbit_client/resources/active_zone_minutes/__init__.py new file mode 100644 index 0000000..8faeb4e --- /dev/null +++ b/tests/fitbit_client/resources/active_zone_minutes/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/active_zone_minutes/__init__.py diff --git a/tests/resources/active_zone_minutes/test_get_azm_timeseries.py b/tests/fitbit_client/resources/active_zone_minutes/test_get_azm_timeseries.py similarity index 90% rename from tests/resources/active_zone_minutes/test_get_azm_timeseries.py rename to tests/fitbit_client/resources/active_zone_minutes/test_get_azm_timeseries.py index 678dd48..4548cce 100644 --- a/tests/resources/active_zone_minutes/test_get_azm_timeseries.py +++ b/tests/fitbit_client/resources/active_zone_minutes/test_get_azm_timeseries.py @@ -1,4 +1,4 @@ -# tests/resources/active_zone_minutes/test_get_azm_timeseries.py +# tests/fitbit_client/resources/active_zone_minutes/test_get_azm_timeseries.py """Tests for the get_azm_timeseries endpoint.""" diff --git a/tests/resources/active_zone_minutes/test_get_azm_timeseries_by_date.py b/tests/fitbit_client/resources/active_zone_minutes/test_get_azm_timeseries_by_date.py similarity index 96% rename from tests/resources/active_zone_minutes/test_get_azm_timeseries_by_date.py rename to tests/fitbit_client/resources/active_zone_minutes/test_get_azm_timeseries_by_date.py index 751f53a..6882d6f 100644 --- a/tests/resources/active_zone_minutes/test_get_azm_timeseries_by_date.py +++ b/tests/fitbit_client/resources/active_zone_minutes/test_get_azm_timeseries_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/active_zone_minutes/test_get_azm_timeseries_by_date.py +# tests/fitbit_client/resources/active_zone_minutes/test_get_azm_timeseries_by_date.py """Tests for the get_azm_timeseries_by_date endpoint.""" @@ -10,7 +10,7 @@ # Local imports from fitbit_client.exceptions import IntradayValidationException from fitbit_client.exceptions import InvalidDateException -from fitbit_client.resources.constants import Period +from fitbit_client.resources._constants import Period def test_get_azm_timeseries_by_date_success(azm_resource, mock_response): diff --git a/tests/resources/active_zone_minutes/test_get_azm_timeseries_by_interval.py b/tests/fitbit_client/resources/active_zone_minutes/test_get_azm_timeseries_by_interval.py similarity index 97% rename from tests/resources/active_zone_minutes/test_get_azm_timeseries_by_interval.py rename to tests/fitbit_client/resources/active_zone_minutes/test_get_azm_timeseries_by_interval.py index 56bee7c..1d97f67 100644 --- a/tests/resources/active_zone_minutes/test_get_azm_timeseries_by_interval.py +++ b/tests/fitbit_client/resources/active_zone_minutes/test_get_azm_timeseries_by_interval.py @@ -1,4 +1,4 @@ -# tests/resources/active_zone_minutes/test_get_azm_timeseries_by_interval.py +# tests/fitbit_client/resources/active_zone_minutes/test_get_azm_timeseries_by_interval.py """Tests for the get_azm_timeseries_by_interval endpoint.""" diff --git a/tests/fitbit_client/resources/activity/__init__.py b/tests/fitbit_client/resources/activity/__init__.py new file mode 100644 index 0000000..bb0def2 --- /dev/null +++ b/tests/fitbit_client/resources/activity/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/activity/__init__.py diff --git a/tests/resources/activity/test_create_activity_goals.py b/tests/fitbit_client/resources/activity/test_create_activity_goals.py similarity index 89% rename from tests/resources/activity/test_create_activity_goals.py rename to tests/fitbit_client/resources/activity/test_create_activity_goals.py index 8b70fe6..8fa931e 100644 --- a/tests/resources/activity/test_create_activity_goals.py +++ b/tests/fitbit_client/resources/activity/test_create_activity_goals.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_create_activity_goals.py +# tests/fitbit_client/resources/activity/test_create_activity_goals.py """Tests for the create_activity_goals endpoint.""" @@ -10,8 +10,8 @@ # Local imports from fitbit_client.exceptions import ValidationException -from fitbit_client.resources.constants import ActivityGoalPeriod -from fitbit_client.resources.constants import ActivityGoalType +from fitbit_client.resources._constants import ActivityGoalPeriod +from fitbit_client.resources._constants import ActivityGoalType def test_create_activity_goals(activity_resource): diff --git a/tests/resources/activity/test_create_activity_log.py b/tests/fitbit_client/resources/activity/test_create_activity_log.py similarity index 98% rename from tests/resources/activity/test_create_activity_log.py rename to tests/fitbit_client/resources/activity/test_create_activity_log.py index 6beeee5..4a0c42e 100644 --- a/tests/resources/activity/test_create_activity_log.py +++ b/tests/fitbit_client/resources/activity/test_create_activity_log.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_create_activity_log.py +# tests/fitbit_client/resources/activity/test_create_activity_log.py """Tests for the create_activity_log endpoint.""" diff --git a/tests/resources/activity/test_create_favorite_activity.py b/tests/fitbit_client/resources/activity/test_create_favorite_activity.py similarity index 86% rename from tests/resources/activity/test_create_favorite_activity.py rename to tests/fitbit_client/resources/activity/test_create_favorite_activity.py index 2039c82..163675b 100644 --- a/tests/resources/activity/test_create_favorite_activity.py +++ b/tests/fitbit_client/resources/activity/test_create_favorite_activity.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_create_favorite_activity.py +# tests/fitbit_client/resources/activity/test_create_favorite_activity.py """Tests for the create_favorite_activity endpoint.""" diff --git a/tests/resources/activity/test_delete_activity_log.py b/tests/fitbit_client/resources/activity/test_delete_activity_log.py similarity index 87% rename from tests/resources/activity/test_delete_activity_log.py rename to tests/fitbit_client/resources/activity/test_delete_activity_log.py index 2de794f..4f66f8a 100644 --- a/tests/resources/activity/test_delete_activity_log.py +++ b/tests/fitbit_client/resources/activity/test_delete_activity_log.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_delete_activity_log.py +# tests/fitbit_client/resources/activity/test_delete_activity_log.py """Tests for the delete_activity_log endpoint.""" diff --git a/tests/resources/activity/test_delete_favorite_activity.py b/tests/fitbit_client/resources/activity/test_delete_favorite_activity.py similarity index 86% rename from tests/resources/activity/test_delete_favorite_activity.py rename to tests/fitbit_client/resources/activity/test_delete_favorite_activity.py index 0f4ef81..90f0a1a 100644 --- a/tests/resources/activity/test_delete_favorite_activity.py +++ b/tests/fitbit_client/resources/activity/test_delete_favorite_activity.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_delete_favorite_activity.py +# tests/fitbit_client/resources/activity/test_delete_favorite_activity.py """Tests for the delete_favorite_activity endpoint.""" diff --git a/tests/resources/activity/test_get_activity_goals.py b/tests/fitbit_client/resources/activity/test_get_activity_goals.py similarity index 78% rename from tests/resources/activity/test_get_activity_goals.py rename to tests/fitbit_client/resources/activity/test_get_activity_goals.py index f4a3087..1df0747 100644 --- a/tests/resources/activity/test_get_activity_goals.py +++ b/tests/fitbit_client/resources/activity/test_get_activity_goals.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_get_activity_goals.py +# tests/fitbit_client/resources/activity/test_get_activity_goals.py """Tests for the get_activity_goals endpoint.""" @@ -8,7 +8,7 @@ from unittest.mock import Mock # Local imports -from fitbit_client.resources.constants import ActivityGoalPeriod +from fitbit_client.resources._constants import ActivityGoalPeriod def test_get_activity_goals(activity_resource): diff --git a/tests/resources/activity/test_get_activity_log_list.py b/tests/fitbit_client/resources/activity/test_get_activity_log_list.py similarity index 95% rename from tests/resources/activity/test_get_activity_log_list.py rename to tests/fitbit_client/resources/activity/test_get_activity_log_list.py index 96e3513..cfba3e0 100644 --- a/tests/resources/activity/test_get_activity_log_list.py +++ b/tests/fitbit_client/resources/activity/test_get_activity_log_list.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_get_activity_log_list.py +# tests/fitbit_client/resources/activity/test_get_activity_log_list.py """Tests for the get_activity_log_list endpoint.""" @@ -13,7 +13,7 @@ # Local imports from fitbit_client.exceptions import InvalidDateException from fitbit_client.exceptions import PaginationException -from fitbit_client.resources.constants import SortDirection +from fitbit_client.resources._constants import SortDirection def test_get_activity_log_list_validates_limit(activity_resource): @@ -101,7 +101,7 @@ def test_get_activity_log_list_creates_iterator( # Just verify the type is PaginatedIterator # Local imports - from fitbit_client.resources.pagination import PaginatedIterator + from fitbit_client.resources._pagination import PaginatedIterator assert isinstance(result, PaginatedIterator) @@ -142,7 +142,7 @@ def test_activity_log_list_pagination_attributes( ) -@patch("fitbit_client.resources.base.BaseResource._make_request") +@patch("fitbit_client.resources._base.BaseResource._make_request") def test_get_activity_log_list_with_debug(mock_make_request, activity_resource): """Test that debug mode returns None from get_activity_log_list.""" # Mock _make_request to return None when debug=True diff --git a/tests/resources/activity/test_get_activity_tcx.py b/tests/fitbit_client/resources/activity/test_get_activity_tcx.py similarity index 91% rename from tests/resources/activity/test_get_activity_tcx.py rename to tests/fitbit_client/resources/activity/test_get_activity_tcx.py index 507aeab..f6096a2 100644 --- a/tests/resources/activity/test_get_activity_tcx.py +++ b/tests/fitbit_client/resources/activity/test_get_activity_tcx.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_get_activity_tcx.py +# tests/fitbit_client/resources/activity/test_get_activity_tcx.py """Tests for the get_activity_tcx endpoint.""" diff --git a/tests/resources/activity/test_get_activity_type.py b/tests/fitbit_client/resources/activity/test_get_activity_type.py similarity index 86% rename from tests/resources/activity/test_get_activity_type.py rename to tests/fitbit_client/resources/activity/test_get_activity_type.py index 0433646..cd24d62 100644 --- a/tests/resources/activity/test_get_activity_type.py +++ b/tests/fitbit_client/resources/activity/test_get_activity_type.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_get_activity_type.py +# tests/fitbit_client/resources/activity/test_get_activity_type.py """Tests for the get_activity_type endpoint.""" diff --git a/tests/resources/activity/test_get_all_activity_types.py b/tests/fitbit_client/resources/activity/test_get_all_activity_types.py similarity index 86% rename from tests/resources/activity/test_get_all_activity_types.py rename to tests/fitbit_client/resources/activity/test_get_all_activity_types.py index a2aa2ff..da3dc42 100644 --- a/tests/resources/activity/test_get_all_activity_types.py +++ b/tests/fitbit_client/resources/activity/test_get_all_activity_types.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_get_all_activity_types.py +# tests/fitbit_client/resources/activity/test_get_all_activity_types.py """Tests for the get_all_activity_types endpoint.""" diff --git a/tests/resources/activity/test_get_daily_activity_summary.py b/tests/fitbit_client/resources/activity/test_get_daily_activity_summary.py similarity index 92% rename from tests/resources/activity/test_get_daily_activity_summary.py rename to tests/fitbit_client/resources/activity/test_get_daily_activity_summary.py index bdaa39f..f8d04f6 100644 --- a/tests/resources/activity/test_get_daily_activity_summary.py +++ b/tests/fitbit_client/resources/activity/test_get_daily_activity_summary.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_get_daily_activity_summary.py +# tests/fitbit_client/resources/activity/test_get_daily_activity_summary.py """Tests for the get_daily_activity_summary endpoint.""" diff --git a/tests/resources/activity/test_get_favorite_activities.py b/tests/fitbit_client/resources/activity/test_get_favorite_activities.py similarity index 86% rename from tests/resources/activity/test_get_favorite_activities.py rename to tests/fitbit_client/resources/activity/test_get_favorite_activities.py index 976af64..1162f29 100644 --- a/tests/resources/activity/test_get_favorite_activities.py +++ b/tests/fitbit_client/resources/activity/test_get_favorite_activities.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_get_favorite_activities.py +# tests/fitbit_client/resources/activity/test_get_favorite_activities.py """Tests for the get_favorite_activities endpoint.""" diff --git a/tests/resources/activity/test_get_frequent_activities.py b/tests/fitbit_client/resources/activity/test_get_frequent_activities.py similarity index 86% rename from tests/resources/activity/test_get_frequent_activities.py rename to tests/fitbit_client/resources/activity/test_get_frequent_activities.py index f534891..e7f0de1 100644 --- a/tests/resources/activity/test_get_frequent_activities.py +++ b/tests/fitbit_client/resources/activity/test_get_frequent_activities.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_get_frequent_activities.py +# tests/fitbit_client/resources/activity/test_get_frequent_activities.py """Tests for the get_frequent_activities endpoint.""" diff --git a/tests/resources/activity/test_get_lifetime_stats.py b/tests/fitbit_client/resources/activity/test_get_lifetime_stats.py similarity index 86% rename from tests/resources/activity/test_get_lifetime_stats.py rename to tests/fitbit_client/resources/activity/test_get_lifetime_stats.py index 3266688..2ec4010 100644 --- a/tests/resources/activity/test_get_lifetime_stats.py +++ b/tests/fitbit_client/resources/activity/test_get_lifetime_stats.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_get_lifetime_stats.py +# tests/fitbit_client/resources/activity/test_get_lifetime_stats.py """Tests for the get_lifetime_stats endpoint.""" diff --git a/tests/resources/activity/test_get_recent_activity_types.py b/tests/fitbit_client/resources/activity/test_get_recent_activity_types.py similarity index 86% rename from tests/resources/activity/test_get_recent_activity_types.py rename to tests/fitbit_client/resources/activity/test_get_recent_activity_types.py index 5fd90dc..3a17acb 100644 --- a/tests/resources/activity/test_get_recent_activity_types.py +++ b/tests/fitbit_client/resources/activity/test_get_recent_activity_types.py @@ -1,4 +1,4 @@ -# tests/resources/activity/test_get_recent_activity_types.py +# tests/fitbit_client/resources/activity/test_get_recent_activity_types.py """Tests for the get_recent_activity_types endpoint.""" diff --git a/tests/fitbit_client/resources/activity_timeseries/__init__.py b/tests/fitbit_client/resources/activity_timeseries/__init__.py new file mode 100644 index 0000000..1e60bc5 --- /dev/null +++ b/tests/fitbit_client/resources/activity_timeseries/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/activity_timeseries/__init__.py diff --git a/tests/resources/activity_timeseries/test_get_activity_timeseries.py b/tests/fitbit_client/resources/activity_timeseries/test_get_activity_timeseries.py similarity index 89% rename from tests/resources/activity_timeseries/test_get_activity_timeseries.py rename to tests/fitbit_client/resources/activity_timeseries/test_get_activity_timeseries.py index fdf6418..9995eba 100644 --- a/tests/resources/activity_timeseries/test_get_activity_timeseries.py +++ b/tests/fitbit_client/resources/activity_timeseries/test_get_activity_timeseries.py @@ -1,12 +1,12 @@ -# tests/resources/activity_timeseries/test_get_activity_timeseries.py +# tests/fitbit_client/resources/activity_timeseries/test_get_activity_timeseries.py """Tests for the get_activity_timeseries endpoint.""" # Local imports # Local imports -from fitbit_client.resources.constants import ActivityTimeSeriesPath -from fitbit_client.resources.constants import Period +from fitbit_client.resources._constants import ActivityTimeSeriesPath +from fitbit_client.resources._constants import Period def test_get_activity_timeseries_with_today_date(activity_timeseries_resource, mock_response): diff --git a/tests/resources/activity_timeseries/test_get_activity_timeseries_by_date.py b/tests/fitbit_client/resources/activity_timeseries/test_get_activity_timeseries_by_date.py similarity index 94% rename from tests/resources/activity_timeseries/test_get_activity_timeseries_by_date.py rename to tests/fitbit_client/resources/activity_timeseries/test_get_activity_timeseries_by_date.py index b755749..4ad2b79 100644 --- a/tests/resources/activity_timeseries/test_get_activity_timeseries_by_date.py +++ b/tests/fitbit_client/resources/activity_timeseries/test_get_activity_timeseries_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/activity_timeseries/test_get_activity_timeseries_by_date.py +# tests/fitbit_client/resources/activity_timeseries/test_get_activity_timeseries_by_date.py """Tests for the get_activity_timeseries_by_date endpoint.""" @@ -9,8 +9,8 @@ # Local imports from fitbit_client.exceptions import InvalidDateException -from fitbit_client.resources.constants import ActivityTimeSeriesPath -from fitbit_client.resources.constants import Period +from fitbit_client.resources._constants import ActivityTimeSeriesPath +from fitbit_client.resources._constants import Period def test_get_activity_timeseries_by_date_success(activity_timeseries_resource, mock_response): diff --git a/tests/resources/activity_timeseries/test_get_activity_timeseries_by_date_range.py b/tests/fitbit_client/resources/activity_timeseries/test_get_activity_timeseries_by_date_range.py similarity index 96% rename from tests/resources/activity_timeseries/test_get_activity_timeseries_by_date_range.py rename to tests/fitbit_client/resources/activity_timeseries/test_get_activity_timeseries_by_date_range.py index fe8ccac..b7db8a1 100644 --- a/tests/resources/activity_timeseries/test_get_activity_timeseries_by_date_range.py +++ b/tests/fitbit_client/resources/activity_timeseries/test_get_activity_timeseries_by_date_range.py @@ -1,4 +1,4 @@ -# tests/resources/activity_timeseries/test_get_activity_timeseries_by_date_range.py +# tests/fitbit_client/resources/activity_timeseries/test_get_activity_timeseries_by_date_range.py """Tests for the get_activity_timeseries_by_date_range endpoint.""" @@ -11,7 +11,7 @@ from fitbit_client.exceptions import InvalidDateException from fitbit_client.exceptions import InvalidDateRangeException from fitbit_client.exceptions import ValidationException -from fitbit_client.resources.constants import ActivityTimeSeriesPath +from fitbit_client.resources._constants import ActivityTimeSeriesPath def test_get_activity_timeseries_by_date_range_success(activity_timeseries_resource, mock_response): diff --git a/tests/fitbit_client/resources/body/__init__.py b/tests/fitbit_client/resources/body/__init__.py new file mode 100644 index 0000000..2a5d5d0 --- /dev/null +++ b/tests/fitbit_client/resources/body/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/body/__init__.py diff --git a/tests/resources/body/test_create_bodyfat_goal.py b/tests/fitbit_client/resources/body/test_create_bodyfat_goal.py similarity index 91% rename from tests/resources/body/test_create_bodyfat_goal.py rename to tests/fitbit_client/resources/body/test_create_bodyfat_goal.py index a76df7d..eb813fa 100644 --- a/tests/resources/body/test_create_bodyfat_goal.py +++ b/tests/fitbit_client/resources/body/test_create_bodyfat_goal.py @@ -1,4 +1,4 @@ -# tests/resources/body/test_create_bodyfat_goal.py +# tests/fitbit_client/resources/body/test_create_bodyfat_goal.py """Tests for the create_bodyfat_goal endpoint.""" diff --git a/tests/resources/body/test_create_bodyfat_log.py b/tests/fitbit_client/resources/body/test_create_bodyfat_log.py similarity index 97% rename from tests/resources/body/test_create_bodyfat_log.py rename to tests/fitbit_client/resources/body/test_create_bodyfat_log.py index 35a5aeb..ae71b41 100644 --- a/tests/resources/body/test_create_bodyfat_log.py +++ b/tests/fitbit_client/resources/body/test_create_bodyfat_log.py @@ -1,4 +1,4 @@ -# tests/resources/body/test_create_bodyfat_log.py +# tests/fitbit_client/resources/body/test_create_bodyfat_log.py """Tests for the create_bodyfat_log endpoint.""" diff --git a/tests/resources/body/test_create_weight_goal.py b/tests/fitbit_client/resources/body/test_create_weight_goal.py similarity index 97% rename from tests/resources/body/test_create_weight_goal.py rename to tests/fitbit_client/resources/body/test_create_weight_goal.py index f397858..c846dae 100644 --- a/tests/resources/body/test_create_weight_goal.py +++ b/tests/fitbit_client/resources/body/test_create_weight_goal.py @@ -1,4 +1,4 @@ -# tests/resources/body/test_create_weight_goal.py +# tests/fitbit_client/resources/body/test_create_weight_goal.py """Tests for the create_weight_goal endpoint.""" diff --git a/tests/resources/body/test_create_weight_log.py b/tests/fitbit_client/resources/body/test_create_weight_log.py similarity index 98% rename from tests/resources/body/test_create_weight_log.py rename to tests/fitbit_client/resources/body/test_create_weight_log.py index 00b9d5b..1b5985e 100644 --- a/tests/resources/body/test_create_weight_log.py +++ b/tests/fitbit_client/resources/body/test_create_weight_log.py @@ -1,4 +1,4 @@ -# tests/resources/body/test_create_weight_log.py +# tests/fitbit_client/resources/body/test_create_weight_log.py """Tests for the create_weight_log endpoint.""" diff --git a/tests/resources/body/test_delete_bodyfat_log.py b/tests/fitbit_client/resources/body/test_delete_bodyfat_log.py similarity index 91% rename from tests/resources/body/test_delete_bodyfat_log.py rename to tests/fitbit_client/resources/body/test_delete_bodyfat_log.py index 9b057cc..9e0f9a9 100644 --- a/tests/resources/body/test_delete_bodyfat_log.py +++ b/tests/fitbit_client/resources/body/test_delete_bodyfat_log.py @@ -1,4 +1,4 @@ -# tests/resources/body/test_delete_bodyfat_log.py +# tests/fitbit_client/resources/body/test_delete_bodyfat_log.py """Tests for the delete_bodyfat_log endpoint.""" diff --git a/tests/resources/body/test_delete_weight_log.py b/tests/fitbit_client/resources/body/test_delete_weight_log.py similarity index 91% rename from tests/resources/body/test_delete_weight_log.py rename to tests/fitbit_client/resources/body/test_delete_weight_log.py index fc5b19f..c97f987 100644 --- a/tests/resources/body/test_delete_weight_log.py +++ b/tests/fitbit_client/resources/body/test_delete_weight_log.py @@ -1,4 +1,4 @@ -# tests/resources/body/test_delete_weight_log.py +# tests/fitbit_client/resources/body/test_delete_weight_log.py """Tests for the delete_weight_log endpoint.""" diff --git a/tests/resources/body/test_get_body_goals.py b/tests/fitbit_client/resources/body/test_get_body_goals.py similarity index 92% rename from tests/resources/body/test_get_body_goals.py rename to tests/fitbit_client/resources/body/test_get_body_goals.py index 74851ed..55e4a90 100644 --- a/tests/resources/body/test_get_body_goals.py +++ b/tests/fitbit_client/resources/body/test_get_body_goals.py @@ -1,11 +1,11 @@ -# tests/resources/body/test_get_body_goals.py +# tests/fitbit_client/resources/body/test_get_body_goals.py """Tests for the get_body_goals endpoint.""" # Local imports # Local imports -from fitbit_client.resources.constants import BodyGoalType +from fitbit_client.resources._constants import BodyGoalType def test_get_body_goals_fat(body_resource, mock_oauth_session, mock_response_factory): diff --git a/tests/resources/body/test_get_bodyfat_log.py b/tests/fitbit_client/resources/body/test_get_bodyfat_log.py similarity index 96% rename from tests/resources/body/test_get_bodyfat_log.py rename to tests/fitbit_client/resources/body/test_get_bodyfat_log.py index a1cf192..a7c7fc6 100644 --- a/tests/resources/body/test_get_bodyfat_log.py +++ b/tests/fitbit_client/resources/body/test_get_bodyfat_log.py @@ -1,4 +1,4 @@ -# tests/resources/body/test_get_bodyfat_log.py +# tests/fitbit_client/resources/body/test_get_bodyfat_log.py """Tests for the get_bodyfat_log endpoint.""" diff --git a/tests/resources/body/test_get_weight_logs.py b/tests/fitbit_client/resources/body/test_get_weight_logs.py similarity index 97% rename from tests/resources/body/test_get_weight_logs.py rename to tests/fitbit_client/resources/body/test_get_weight_logs.py index 7637154..37a5e58 100644 --- a/tests/resources/body/test_get_weight_logs.py +++ b/tests/fitbit_client/resources/body/test_get_weight_logs.py @@ -1,4 +1,4 @@ -# tests/resources/body/test_get_weight_logs.py +# tests/fitbit_client/resources/body/test_get_weight_logs.py """Tests for the get_weight_logs endpoint.""" diff --git a/tests/fitbit_client/resources/body_timeseries/__init__.py b/tests/fitbit_client/resources/body_timeseries/__init__.py new file mode 100644 index 0000000..15f52cc --- /dev/null +++ b/tests/fitbit_client/resources/body_timeseries/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/body_timeseries/__init__.py diff --git a/tests/resources/body_timeseries/test_get_body_timeseries_by_date.py b/tests/fitbit_client/resources/body_timeseries/test_get_body_timeseries_by_date.py similarity index 95% rename from tests/resources/body_timeseries/test_get_body_timeseries_by_date.py rename to tests/fitbit_client/resources/body_timeseries/test_get_body_timeseries_by_date.py index 0ed7915..766ca4f 100644 --- a/tests/resources/body_timeseries/test_get_body_timeseries_by_date.py +++ b/tests/fitbit_client/resources/body_timeseries/test_get_body_timeseries_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/body_timeseries/test_get_body_timeseries_by_date.py +# tests/fitbit_client/resources/body_timeseries/test_get_body_timeseries_by_date.py """Tests for the get_body_timeseries_by_date endpoint.""" @@ -11,8 +11,8 @@ # Local imports from fitbit_client.exceptions import InvalidDateException from fitbit_client.exceptions import ValidationException -from fitbit_client.resources.constants import BodyResourceType -from fitbit_client.resources.constants import BodyTimePeriod +from fitbit_client.resources._constants import BodyResourceType +from fitbit_client.resources._constants import BodyTimePeriod def test_get_body_timeseries_by_date_validates_date_format(body_timeseries): diff --git a/tests/resources/body_timeseries/test_get_body_timeseries_by_date_range.py b/tests/fitbit_client/resources/body_timeseries/test_get_body_timeseries_by_date_range.py similarity index 94% rename from tests/resources/body_timeseries/test_get_body_timeseries_by_date_range.py rename to tests/fitbit_client/resources/body_timeseries/test_get_body_timeseries_by_date_range.py index 64f69e0..3fee224 100644 --- a/tests/resources/body_timeseries/test_get_body_timeseries_by_date_range.py +++ b/tests/fitbit_client/resources/body_timeseries/test_get_body_timeseries_by_date_range.py @@ -1,4 +1,4 @@ -# tests/resources/body_timeseries/test_get_body_timeseries_by_date_range.py +# tests/fitbit_client/resources/body_timeseries/test_get_body_timeseries_by_date_range.py """Tests for the get_body_timeseries_by_date_range endpoint.""" @@ -8,8 +8,8 @@ # Local imports from fitbit_client.exceptions import InvalidDateException from fitbit_client.exceptions import InvalidDateRangeException -from fitbit_client.resources.constants import BodyResourceType -from fitbit_client.resources.constants import MaxRanges +from fitbit_client.resources._constants import BodyResourceType +from fitbit_client.resources._constants import MaxRanges def test_get_body_timeseries_by_date_range_validates_dates(body_timeseries): diff --git a/tests/resources/body_timeseries/test_get_bodyfat_timeseries_by_date.py b/tests/fitbit_client/resources/body_timeseries/test_get_bodyfat_timeseries_by_date.py similarity index 93% rename from tests/resources/body_timeseries/test_get_bodyfat_timeseries_by_date.py rename to tests/fitbit_client/resources/body_timeseries/test_get_bodyfat_timeseries_by_date.py index 066e00f..e4dbe09 100644 --- a/tests/resources/body_timeseries/test_get_bodyfat_timeseries_by_date.py +++ b/tests/fitbit_client/resources/body_timeseries/test_get_bodyfat_timeseries_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/body_timeseries/test_get_bodyfat_timeseries_by_date.py +# tests/fitbit_client/resources/body_timeseries/test_get_bodyfat_timeseries_by_date.py """Tests for the get_bodyfat_timeseries_by_date endpoint.""" @@ -8,7 +8,7 @@ # Local imports from fitbit_client.exceptions import InvalidDateException from fitbit_client.exceptions import ValidationException -from fitbit_client.resources.constants import BodyTimePeriod +from fitbit_client.resources._constants import BodyTimePeriod def test_get_bodyfat_timeseries_by_date_validates_date(body_timeseries): diff --git a/tests/resources/body_timeseries/test_get_bodyfat_timeseries_by_date_range.py b/tests/fitbit_client/resources/body_timeseries/test_get_bodyfat_timeseries_by_date_range.py similarity index 96% rename from tests/resources/body_timeseries/test_get_bodyfat_timeseries_by_date_range.py rename to tests/fitbit_client/resources/body_timeseries/test_get_bodyfat_timeseries_by_date_range.py index 714da21..2bb9945 100644 --- a/tests/resources/body_timeseries/test_get_bodyfat_timeseries_by_date_range.py +++ b/tests/fitbit_client/resources/body_timeseries/test_get_bodyfat_timeseries_by_date_range.py @@ -1,4 +1,4 @@ -# tests/resources/body_timeseries/test_get_bodyfat_timeseries_by_date_range.py +# tests/fitbit_client/resources/body_timeseries/test_get_bodyfat_timeseries_by_date_range.py """Tests for the get_bodyfat_timeseries_by_date_range endpoint.""" diff --git a/tests/resources/body_timeseries/test_get_weight_timeseries_by_date.py b/tests/fitbit_client/resources/body_timeseries/test_get_weight_timeseries_by_date.py similarity index 93% rename from tests/resources/body_timeseries/test_get_weight_timeseries_by_date.py rename to tests/fitbit_client/resources/body_timeseries/test_get_weight_timeseries_by_date.py index b8323b7..eadf9c1 100644 --- a/tests/resources/body_timeseries/test_get_weight_timeseries_by_date.py +++ b/tests/fitbit_client/resources/body_timeseries/test_get_weight_timeseries_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/body_timeseries/test_get_weight_timeseries_by_date.py +# tests/fitbit_client/resources/body_timeseries/test_get_weight_timeseries_by_date.py """Tests for the get_weight_timeseries_by_date endpoint.""" @@ -8,7 +8,7 @@ # Local imports from fitbit_client.exceptions import InvalidDateException from fitbit_client.exceptions import ValidationException -from fitbit_client.resources.constants import BodyTimePeriod +from fitbit_client.resources._constants import BodyTimePeriod def test_get_weight_timeseries_by_date_validates_date(body_timeseries): diff --git a/tests/resources/body_timeseries/test_get_weight_timeseries_by_date_range.py b/tests/fitbit_client/resources/body_timeseries/test_get_weight_timeseries_by_date_range.py similarity index 96% rename from tests/resources/body_timeseries/test_get_weight_timeseries_by_date_range.py rename to tests/fitbit_client/resources/body_timeseries/test_get_weight_timeseries_by_date_range.py index 11622dd..0833a11 100644 --- a/tests/resources/body_timeseries/test_get_weight_timeseries_by_date_range.py +++ b/tests/fitbit_client/resources/body_timeseries/test_get_weight_timeseries_by_date_range.py @@ -1,4 +1,4 @@ -# tests/resources/body_timeseries/test_get_weight_timeseries_by_date_range.py +# tests/fitbit_client/resources/body_timeseries/test_get_weight_timeseries_by_date_range.py """Tests for the get_weight_timeseries_by_date_range endpoint.""" diff --git a/tests/fitbit_client/resources/breathing_rate/__init__.py b/tests/fitbit_client/resources/breathing_rate/__init__.py new file mode 100644 index 0000000..a081d7e --- /dev/null +++ b/tests/fitbit_client/resources/breathing_rate/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/breathing_rate/__init__.py diff --git a/tests/resources/breathing_rate/test_get_breathingrate_summary_by_date.py b/tests/fitbit_client/resources/breathing_rate/test_get_breathingrate_summary_by_date.py similarity index 91% rename from tests/resources/breathing_rate/test_get_breathingrate_summary_by_date.py rename to tests/fitbit_client/resources/breathing_rate/test_get_breathingrate_summary_by_date.py index 5530467..d08415e 100644 --- a/tests/resources/breathing_rate/test_get_breathingrate_summary_by_date.py +++ b/tests/fitbit_client/resources/breathing_rate/test_get_breathingrate_summary_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/breathing_rate/test_get_breathingrate_summary_by_date.py +# tests/fitbit_client/resources/breathing_rate/test_get_breathingrate_summary_by_date.py """Tests for the get_breathing_rate_summary_by_date endpoint.""" diff --git a/tests/resources/breathing_rate/test_get_breathingrate_summary_by_interval.py b/tests/fitbit_client/resources/breathing_rate/test_get_breathingrate_summary_by_interval.py similarity index 94% rename from tests/resources/breathing_rate/test_get_breathingrate_summary_by_interval.py rename to tests/fitbit_client/resources/breathing_rate/test_get_breathingrate_summary_by_interval.py index 5b2d1d6..d8b96f5 100644 --- a/tests/resources/breathing_rate/test_get_breathingrate_summary_by_interval.py +++ b/tests/fitbit_client/resources/breathing_rate/test_get_breathingrate_summary_by_interval.py @@ -1,4 +1,4 @@ -# tests/resources/breathing_rate/test_get_breathingrate_summary_by_interval.py +# tests/fitbit_client/resources/breathing_rate/test_get_breathingrate_summary_by_interval.py """Tests for the get_breathing_rate_summary_by_interval endpoint.""" diff --git a/tests/fitbit_client/resources/cardio_fitness_score/__init__.py b/tests/fitbit_client/resources/cardio_fitness_score/__init__.py new file mode 100644 index 0000000..0dde669 --- /dev/null +++ b/tests/fitbit_client/resources/cardio_fitness_score/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/cardio_fitness_score/__init__.py diff --git a/tests/resources/cardio_fitness_score/test_get_vo2_max_summary_by_date.py b/tests/fitbit_client/resources/cardio_fitness_score/test_get_vo2_max_summary_by_date.py similarity index 93% rename from tests/resources/cardio_fitness_score/test_get_vo2_max_summary_by_date.py rename to tests/fitbit_client/resources/cardio_fitness_score/test_get_vo2_max_summary_by_date.py index c65195e..5d7ad46 100644 --- a/tests/resources/cardio_fitness_score/test_get_vo2_max_summary_by_date.py +++ b/tests/fitbit_client/resources/cardio_fitness_score/test_get_vo2_max_summary_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/cardio_fitness_score/test_get_vo2_max_summary_by_date.py +# tests/fitbit_client/resources/cardio_fitness_score/test_get_vo2_max_summary_by_date.py """Tests for the get_vo2_max_summary_by_date endpoint.""" diff --git a/tests/resources/cardio_fitness_score/test_get_vo2_max_summary_by_interval.py b/tests/fitbit_client/resources/cardio_fitness_score/test_get_vo2_max_summary_by_interval.py similarity index 96% rename from tests/resources/cardio_fitness_score/test_get_vo2_max_summary_by_interval.py rename to tests/fitbit_client/resources/cardio_fitness_score/test_get_vo2_max_summary_by_interval.py index a151f8e..4017b6d 100644 --- a/tests/resources/cardio_fitness_score/test_get_vo2_max_summary_by_interval.py +++ b/tests/fitbit_client/resources/cardio_fitness_score/test_get_vo2_max_summary_by_interval.py @@ -1,4 +1,4 @@ -# tests/resources/cardio_fitness_score/test_get_vo2_max_summary_by_interval.py +# tests/fitbit_client/resources/cardio_fitness_score/test_get_vo2_max_summary_by_interval.py """Tests for the get_vo2_max_summary_by_interval endpoint.""" diff --git a/tests/fitbit_client/resources/device/__init__.py b/tests/fitbit_client/resources/device/__init__.py new file mode 100644 index 0000000..78de8f4 --- /dev/null +++ b/tests/fitbit_client/resources/device/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/device/__init__.py diff --git a/tests/resources/device/test_create_alarm.py b/tests/fitbit_client/resources/device/test_create_alarm.py similarity index 87% rename from tests/resources/device/test_create_alarm.py rename to tests/fitbit_client/resources/device/test_create_alarm.py index c633968..e09a60c 100644 --- a/tests/resources/device/test_create_alarm.py +++ b/tests/fitbit_client/resources/device/test_create_alarm.py @@ -1,4 +1,4 @@ -# tests/resources/device/test_create_alarm.py +# tests/fitbit_client/resources/device/test_create_alarm.py """Tests for the create_alarm endpoint.""" diff --git a/tests/resources/device/test_delete_alarm.py b/tests/fitbit_client/resources/device/test_delete_alarm.py similarity index 84% rename from tests/resources/device/test_delete_alarm.py rename to tests/fitbit_client/resources/device/test_delete_alarm.py index 1686c7a..c68a92b 100644 --- a/tests/resources/device/test_delete_alarm.py +++ b/tests/fitbit_client/resources/device/test_delete_alarm.py @@ -1,4 +1,4 @@ -# tests/resources/device/test_delete_alarm.py +# tests/fitbit_client/resources/device/test_delete_alarm.py """Tests for the delete_alarm endpoint.""" diff --git a/tests/resources/device/test_get_alarms.py b/tests/fitbit_client/resources/device/test_get_alarms.py similarity index 84% rename from tests/resources/device/test_get_alarms.py rename to tests/fitbit_client/resources/device/test_get_alarms.py index 59bd823..230ef9a 100644 --- a/tests/resources/device/test_get_alarms.py +++ b/tests/fitbit_client/resources/device/test_get_alarms.py @@ -1,4 +1,4 @@ -# tests/resources/device/test_get_alarms.py +# tests/fitbit_client/resources/device/test_get_alarms.py """Tests for the get_alarms endpoint.""" diff --git a/tests/resources/device/test_get_devices.py b/tests/fitbit_client/resources/device/test_get_devices.py similarity index 97% rename from tests/resources/device/test_get_devices.py rename to tests/fitbit_client/resources/device/test_get_devices.py index 55a6b27..62a4cc5 100644 --- a/tests/resources/device/test_get_devices.py +++ b/tests/fitbit_client/resources/device/test_get_devices.py @@ -1,4 +1,4 @@ -# tests/resources/device/test_get_devices.py +# tests/fitbit_client/resources/device/test_get_devices.py """Tests for the get_devices endpoint.""" diff --git a/tests/resources/device/test_update_alarm.py b/tests/fitbit_client/resources/device/test_update_alarm.py similarity index 90% rename from tests/resources/device/test_update_alarm.py rename to tests/fitbit_client/resources/device/test_update_alarm.py index f5a90a3..38a0aec 100644 --- a/tests/resources/device/test_update_alarm.py +++ b/tests/fitbit_client/resources/device/test_update_alarm.py @@ -1,4 +1,4 @@ -# tests/resources/device/test_update_alarm.py +# tests/fitbit_client/resources/device/test_update_alarm.py """Tests for the update_alarm endpoint.""" diff --git a/tests/fitbit_client/resources/electrocardiogram/__init__.py b/tests/fitbit_client/resources/electrocardiogram/__init__.py new file mode 100644 index 0000000..0d6ccf0 --- /dev/null +++ b/tests/fitbit_client/resources/electrocardiogram/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/electrocardiogram/__init__.py diff --git a/tests/resources/electrocardiogram/test_get_ecg_log_list.py b/tests/fitbit_client/resources/electrocardiogram/test_get_ecg_log_list.py similarity index 96% rename from tests/resources/electrocardiogram/test_get_ecg_log_list.py rename to tests/fitbit_client/resources/electrocardiogram/test_get_ecg_log_list.py index 71b286f..bcde8da 100644 --- a/tests/resources/electrocardiogram/test_get_ecg_log_list.py +++ b/tests/fitbit_client/resources/electrocardiogram/test_get_ecg_log_list.py @@ -1,4 +1,4 @@ -# tests/resources/electrocardiogram/test_get_ecg_log_list.py +# tests/fitbit_client/resources/electrocardiogram/test_get_ecg_log_list.py """Tests for the get_ecg_log_list endpoint.""" @@ -11,7 +11,7 @@ # Local imports from fitbit_client.exceptions import InvalidDateException from fitbit_client.exceptions import PaginationException -from fitbit_client.resources.constants import SortDirection +from fitbit_client.resources._constants import SortDirection def test_get_ecg_log_list_success(ecg_resource, mock_oauth_session, mock_response_factory): @@ -109,7 +109,7 @@ def test_get_ecg_log_list_creates_iterator(ecg_resource, mock_oauth_session, moc # Just verify the type is PaginatedIterator # Local imports - from fitbit_client.resources.pagination import PaginatedIterator + from fitbit_client.resources._pagination import PaginatedIterator assert isinstance(result, PaginatedIterator) @@ -150,7 +150,7 @@ def test_ecg_log_list_pagination_attributes( ) -@patch("fitbit_client.resources.base.BaseResource._make_request") +@patch("fitbit_client.resources._base.BaseResource._make_request") def test_get_ecg_log_list_with_debug(mock_make_request, ecg_resource): """Test that debug mode returns None from get_ecg_log_list.""" # Mock _make_request to return None when debug=True diff --git a/tests/fitbit_client/resources/friends/__init__.py b/tests/fitbit_client/resources/friends/__init__.py new file mode 100644 index 0000000..a78e91a --- /dev/null +++ b/tests/fitbit_client/resources/friends/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/friends/__init__.py diff --git a/tests/resources/friends/test_get_friends.py b/tests/fitbit_client/resources/friends/test_get_friends.py similarity index 94% rename from tests/resources/friends/test_get_friends.py rename to tests/fitbit_client/resources/friends/test_get_friends.py index 4b42cfb..8f9b079 100644 --- a/tests/resources/friends/test_get_friends.py +++ b/tests/fitbit_client/resources/friends/test_get_friends.py @@ -1,4 +1,4 @@ -# tests/resources/friends/test_get_friends.py +# tests/fitbit_client/resources/friends/test_get_friends.py """Tests for the get_friends endpoint.""" diff --git a/tests/resources/friends/test_get_friends_leaderboard.py b/tests/fitbit_client/resources/friends/test_get_friends_leaderboard.py similarity index 94% rename from tests/resources/friends/test_get_friends_leaderboard.py rename to tests/fitbit_client/resources/friends/test_get_friends_leaderboard.py index 93327dc..bec034a 100644 --- a/tests/resources/friends/test_get_friends_leaderboard.py +++ b/tests/fitbit_client/resources/friends/test_get_friends_leaderboard.py @@ -1,4 +1,4 @@ -# tests/resources/friends/test_get_friends_leaderboard.py +# tests/fitbit_client/resources/friends/test_get_friends_leaderboard.py """Tests for the get_friends_leaderboard endpoint.""" diff --git a/tests/fitbit_client/resources/heartrate_timeseries/__init__.py b/tests/fitbit_client/resources/heartrate_timeseries/__init__.py new file mode 100644 index 0000000..6882217 --- /dev/null +++ b/tests/fitbit_client/resources/heartrate_timeseries/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/heartrate_timeseries/__init__.py diff --git a/tests/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date.py b/tests/fitbit_client/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date.py similarity index 96% rename from tests/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date.py rename to tests/fitbit_client/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date.py index c0f866f..c600651 100644 --- a/tests/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date.py +++ b/tests/fitbit_client/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date.py +# tests/fitbit_client/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date.py """Tests for the get_heartrate_timeseries_by_date endpoint.""" @@ -11,7 +11,7 @@ from fitbit_client.exceptions import IntradayValidationException from fitbit_client.exceptions import InvalidDateException from fitbit_client.exceptions import ParameterValidationException -from fitbit_client.resources.constants import Period +from fitbit_client.resources._constants import Period def test_get_heartrate_timeseries_by_date_success( diff --git a/tests/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date_range.py b/tests/fitbit_client/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date_range.py similarity index 97% rename from tests/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date_range.py rename to tests/fitbit_client/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date_range.py index 2eb3438..41faa7b 100644 --- a/tests/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date_range.py +++ b/tests/fitbit_client/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date_range.py @@ -1,4 +1,4 @@ -# tests/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date_range.py +# tests/fitbit_client/resources/heartrate_timeseries/test_get_heartrate_timeseries_by_date_range.py """Tests for the get_heartrate_timeseries_by_date_range endpoint.""" diff --git a/tests/fitbit_client/resources/heartrate_variability/__init__.py b/tests/fitbit_client/resources/heartrate_variability/__init__.py new file mode 100644 index 0000000..5350769 --- /dev/null +++ b/tests/fitbit_client/resources/heartrate_variability/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/heartrate_variability/__init__.py diff --git a/tests/resources/heartrate_variability/test_get_hrv_summary_by_date.py b/tests/fitbit_client/resources/heartrate_variability/test_get_hrv_summary_by_date.py similarity index 94% rename from tests/resources/heartrate_variability/test_get_hrv_summary_by_date.py rename to tests/fitbit_client/resources/heartrate_variability/test_get_hrv_summary_by_date.py index 783df03..2cf50f3 100644 --- a/tests/resources/heartrate_variability/test_get_hrv_summary_by_date.py +++ b/tests/fitbit_client/resources/heartrate_variability/test_get_hrv_summary_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/heartrate_variability/test_get_hrv_summary_by_date.py +# tests/fitbit_client/resources/heartrate_variability/test_get_hrv_summary_by_date.py """Tests for the get_hrv_summary_by_date endpoint.""" diff --git a/tests/resources/heartrate_variability/test_get_hrv_summary_by_interval.py b/tests/fitbit_client/resources/heartrate_variability/test_get_hrv_summary_by_interval.py similarity index 96% rename from tests/resources/heartrate_variability/test_get_hrv_summary_by_interval.py rename to tests/fitbit_client/resources/heartrate_variability/test_get_hrv_summary_by_interval.py index f650c6a..c4107d1 100644 --- a/tests/resources/heartrate_variability/test_get_hrv_summary_by_interval.py +++ b/tests/fitbit_client/resources/heartrate_variability/test_get_hrv_summary_by_interval.py @@ -1,4 +1,4 @@ -# tests/resources/heartrate_variability/test_get_hrv_summary_by_interval.py +# tests/fitbit_client/resources/heartrate_variability/test_get_hrv_summary_by_interval.py """Tests for the get_hrv_summary_by_interval endpoint.""" diff --git a/tests/fitbit_client/resources/intraday/__init__.py b/tests/fitbit_client/resources/intraday/__init__.py new file mode 100644 index 0000000..6c2e269 --- /dev/null +++ b/tests/fitbit_client/resources/intraday/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/intraday/__init__.py diff --git a/tests/resources/intraday/test_activity_intraday.py b/tests/fitbit_client/resources/intraday/test_activity_intraday.py similarity index 98% rename from tests/resources/intraday/test_activity_intraday.py rename to tests/fitbit_client/resources/intraday/test_activity_intraday.py index 76d2f04..7653e41 100644 --- a/tests/resources/intraday/test_activity_intraday.py +++ b/tests/fitbit_client/resources/intraday/test_activity_intraday.py @@ -1,11 +1,11 @@ -# tests/resources/intraday/test_activity_intraday.py +# tests/fitbit_client/resources/intraday/test_activity_intraday.py # Third party imports from pytest import raises # Local imports from fitbit_client.exceptions import IntradayValidationException -from fitbit_client.resources.constants import IntradayDetailLevel +from fitbit_client.resources._constants import IntradayDetailLevel def test_get_activity_intraday_by_date_success( diff --git a/tests/resources/intraday/test_azm_intraday.py b/tests/fitbit_client/resources/intraday/test_azm_intraday.py similarity index 98% rename from tests/resources/intraday/test_azm_intraday.py rename to tests/fitbit_client/resources/intraday/test_azm_intraday.py index 7a5d77c..1302df0 100644 --- a/tests/resources/intraday/test_azm_intraday.py +++ b/tests/fitbit_client/resources/intraday/test_azm_intraday.py @@ -1,4 +1,4 @@ -# tests/resources/intraday/test_azm_intraday.py +# tests/fitbit_client/resources/intraday/test_azm_intraday.py # Third party imports from pytest import raises @@ -7,7 +7,7 @@ from fitbit_client.exceptions import IntradayValidationException from fitbit_client.exceptions import InvalidDateException from fitbit_client.exceptions import InvalidDateRangeException -from fitbit_client.resources.constants import IntradayDetailLevel +from fitbit_client.resources._constants import IntradayDetailLevel def test_get_azm_intraday_by_date_success( diff --git a/tests/resources/intraday/test_breathingrate_intraday.py b/tests/fitbit_client/resources/intraday/test_breathingrate_intraday.py similarity index 98% rename from tests/resources/intraday/test_breathingrate_intraday.py rename to tests/fitbit_client/resources/intraday/test_breathingrate_intraday.py index e715130..ed553ef 100644 --- a/tests/resources/intraday/test_breathingrate_intraday.py +++ b/tests/fitbit_client/resources/intraday/test_breathingrate_intraday.py @@ -1,4 +1,4 @@ -# tests/resources/intraday/test_breathingrate_intraday.py +# tests/fitbit_client/resources/intraday/test_breathingrate_intraday.py # Third party imports from pytest import raises diff --git a/tests/resources/intraday/test_heartrate_intraday.py b/tests/fitbit_client/resources/intraday/test_heartrate_intraday.py similarity index 98% rename from tests/resources/intraday/test_heartrate_intraday.py rename to tests/fitbit_client/resources/intraday/test_heartrate_intraday.py index 9726ee3..f45046a 100644 --- a/tests/resources/intraday/test_heartrate_intraday.py +++ b/tests/fitbit_client/resources/intraday/test_heartrate_intraday.py @@ -1,4 +1,4 @@ -# tests/resources/intraday/test_heartrate_intraday.py +# tests/fitbit_client/resources/intraday/test_heartrate_intraday.py # Third party imports from pytest import raises @@ -6,7 +6,7 @@ # Local imports from fitbit_client.exceptions import IntradayValidationException from fitbit_client.exceptions import InvalidDateException -from fitbit_client.resources.constants import IntradayDetailLevel +from fitbit_client.resources._constants import IntradayDetailLevel def test_get_heartrate_intraday_by_date_success( diff --git a/tests/resources/intraday/test_hrv_intraday.py b/tests/fitbit_client/resources/intraday/test_hrv_intraday.py similarity index 98% rename from tests/resources/intraday/test_hrv_intraday.py rename to tests/fitbit_client/resources/intraday/test_hrv_intraday.py index 228b27d..d7b12fa 100644 --- a/tests/resources/intraday/test_hrv_intraday.py +++ b/tests/fitbit_client/resources/intraday/test_hrv_intraday.py @@ -1,4 +1,4 @@ -# tests/resources/intraday/test_hrv_intraday.py +# tests/fitbit_client/resources/intraday/test_hrv_intraday.py # Third party imports from pytest import raises diff --git a/tests/resources/intraday/test_spo2_intraday.py b/tests/fitbit_client/resources/intraday/test_spo2_intraday.py similarity index 98% rename from tests/resources/intraday/test_spo2_intraday.py rename to tests/fitbit_client/resources/intraday/test_spo2_intraday.py index 5164744..e1b98dd 100644 --- a/tests/resources/intraday/test_spo2_intraday.py +++ b/tests/fitbit_client/resources/intraday/test_spo2_intraday.py @@ -1,4 +1,4 @@ -# tests/resources/intraday/test_spo2_intraday.py +# tests/fitbit_client/resources/intraday/test_spo2_intraday.py # Third party imports from pytest import raises diff --git a/tests/fitbit_client/resources/irregular_rhythm_notifications/__init__.py b/tests/fitbit_client/resources/irregular_rhythm_notifications/__init__.py new file mode 100644 index 0000000..dbcb19a --- /dev/null +++ b/tests/fitbit_client/resources/irregular_rhythm_notifications/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/irregular_rhythm_notifications/__init__.py diff --git a/tests/resources/irregular_rhythm_notifications/test_get_irn_alerts_list.py b/tests/fitbit_client/resources/irregular_rhythm_notifications/test_get_irn_alerts_list.py similarity index 95% rename from tests/resources/irregular_rhythm_notifications/test_get_irn_alerts_list.py rename to tests/fitbit_client/resources/irregular_rhythm_notifications/test_get_irn_alerts_list.py index 1917ed7..737d434 100644 --- a/tests/resources/irregular_rhythm_notifications/test_get_irn_alerts_list.py +++ b/tests/fitbit_client/resources/irregular_rhythm_notifications/test_get_irn_alerts_list.py @@ -1,4 +1,4 @@ -# tests/resources/irregular_rhythm_notifications/test_get_irn_alerts_list.py +# tests/fitbit_client/resources/irregular_rhythm_notifications/test_get_irn_alerts_list.py """Tests for the get_irn_alerts_list endpoint.""" @@ -11,7 +11,7 @@ # Local imports from fitbit_client.exceptions import InvalidDateException from fitbit_client.exceptions import PaginationException -from fitbit_client.resources.constants import SortDirection +from fitbit_client.resources._constants import SortDirection def test_get_irn_alerts_list_success(irn_resource, mock_oauth_session, mock_response_factory): @@ -115,7 +115,7 @@ def test_get_irn_alerts_list_creates_iterator( # Just verify the type is PaginatedIterator # Local imports - from fitbit_client.resources.pagination import PaginatedIterator + from fitbit_client.resources._pagination import PaginatedIterator assert isinstance(result, PaginatedIterator) @@ -156,7 +156,7 @@ def test_irn_alerts_list_pagination_attributes( ) -@patch("fitbit_client.resources.base.BaseResource._make_request") +@patch("fitbit_client.resources._base.BaseResource._make_request") def test_get_irn_alerts_list_with_debug(mock_make_request, irn_resource): """Test that debug mode returns None from get_irn_alerts_list.""" # Mock _make_request to return None when debug=True diff --git a/tests/resources/irregular_rhythm_notifications/test_get_irn_profile.py b/tests/fitbit_client/resources/irregular_rhythm_notifications/test_get_irn_profile.py similarity index 94% rename from tests/resources/irregular_rhythm_notifications/test_get_irn_profile.py rename to tests/fitbit_client/resources/irregular_rhythm_notifications/test_get_irn_profile.py index bfce674..a1ed707 100644 --- a/tests/resources/irregular_rhythm_notifications/test_get_irn_profile.py +++ b/tests/fitbit_client/resources/irregular_rhythm_notifications/test_get_irn_profile.py @@ -1,4 +1,4 @@ -# tests/resources/irregular_rhythm_notifications/test_get_irn_profile.py +# tests/fitbit_client/resources/irregular_rhythm_notifications/test_get_irn_profile.py """Tests for the get_irn_profile endpoint.""" diff --git a/tests/fitbit_client/resources/nutrition/__init__.py b/tests/fitbit_client/resources/nutrition/__init__.py new file mode 100644 index 0000000..82b8fee --- /dev/null +++ b/tests/fitbit_client/resources/nutrition/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/nutrition/__init__.py diff --git a/tests/resources/nutrition/test_add_favorite_foods.py b/tests/fitbit_client/resources/nutrition/test_add_favorite_foods.py similarity index 91% rename from tests/resources/nutrition/test_add_favorite_foods.py rename to tests/fitbit_client/resources/nutrition/test_add_favorite_foods.py index 837ec94..c8952c0 100644 --- a/tests/resources/nutrition/test_add_favorite_foods.py +++ b/tests/fitbit_client/resources/nutrition/test_add_favorite_foods.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_add_favorite_foods.py +# tests/fitbit_client/resources/nutrition/test_add_favorite_foods.py """Tests for the add_favorite_foods endpoint.""" diff --git a/tests/resources/nutrition/test_create_food.py b/tests/fitbit_client/resources/nutrition/test_create_food.py similarity index 96% rename from tests/resources/nutrition/test_create_food.py rename to tests/fitbit_client/resources/nutrition/test_create_food.py index 3b837ba..20ae740 100644 --- a/tests/resources/nutrition/test_create_food.py +++ b/tests/fitbit_client/resources/nutrition/test_create_food.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_create_food.py +# tests/fitbit_client/resources/nutrition/test_create_food.py """Tests for the create_food endpoint.""" @@ -8,8 +8,8 @@ # Local imports from fitbit_client.exceptions import ClientValidationException from fitbit_client.exceptions import ValidationException -from fitbit_client.resources.constants import FoodFormType -from fitbit_client.resources.constants import NutritionalValue +from fitbit_client.resources._constants import FoodFormType +from fitbit_client.resources._constants import NutritionalValue def test_create_food_success(nutrition_resource, mock_response): diff --git a/tests/resources/nutrition/test_create_food_goal.py b/tests/fitbit_client/resources/nutrition/test_create_food_goal.py similarity index 94% rename from tests/resources/nutrition/test_create_food_goal.py rename to tests/fitbit_client/resources/nutrition/test_create_food_goal.py index d153141..6eb01ad 100644 --- a/tests/resources/nutrition/test_create_food_goal.py +++ b/tests/fitbit_client/resources/nutrition/test_create_food_goal.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_create_food_goal.py +# tests/fitbit_client/resources/nutrition/test_create_food_goal.py """Tests for the create_food_goal endpoint.""" @@ -9,7 +9,7 @@ # Local imports from fitbit_client.exceptions import MissingParameterException -from fitbit_client.resources.constants import FoodPlanIntensity +from fitbit_client.resources._constants import FoodPlanIntensity def test_create_food_goal_with_calories_success(nutrition_resource, mock_response): diff --git a/tests/resources/nutrition/test_create_food_goal_intensity.py b/tests/fitbit_client/resources/nutrition/test_create_food_goal_intensity.py similarity index 85% rename from tests/resources/nutrition/test_create_food_goal_intensity.py rename to tests/fitbit_client/resources/nutrition/test_create_food_goal_intensity.py index 27aecea..967b89e 100644 --- a/tests/resources/nutrition/test_create_food_goal_intensity.py +++ b/tests/fitbit_client/resources/nutrition/test_create_food_goal_intensity.py @@ -1,11 +1,11 @@ -# tests/resources/nutrition/test_create_food_goal_intensity.py +# tests/fitbit_client/resources/nutrition/test_create_food_goal_intensity.py """Tests for the create_food_goal_intensity endpoint.""" # Local imports # Local imports -from fitbit_client.resources.constants import FoodPlanIntensity +from fitbit_client.resources._constants import FoodPlanIntensity def test_create_food_goal_intensity_without_personalized(nutrition_resource, mock_response): diff --git a/tests/resources/nutrition/test_create_food_log.py b/tests/fitbit_client/resources/nutrition/test_create_food_log.py similarity index 97% rename from tests/resources/nutrition/test_create_food_log.py rename to tests/fitbit_client/resources/nutrition/test_create_food_log.py index 312691f..cdc1396 100644 --- a/tests/resources/nutrition/test_create_food_log.py +++ b/tests/fitbit_client/resources/nutrition/test_create_food_log.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_create_food_log.py +# tests/fitbit_client/resources/nutrition/test_create_food_log.py """Tests for the create_food_log endpoint.""" @@ -10,8 +10,8 @@ # Local imports from fitbit_client.exceptions import ClientValidationException from fitbit_client.exceptions import InvalidDateException -from fitbit_client.resources.constants import MealType -from fitbit_client.resources.constants import NutritionalValue +from fitbit_client.resources._constants import MealType +from fitbit_client.resources._constants import NutritionalValue def test_create_food_log_with_food_id_success(nutrition_resource, mock_response): diff --git a/tests/resources/nutrition/test_create_food_log_custom_minimal.py b/tests/fitbit_client/resources/nutrition/test_create_food_log_custom_minimal.py similarity index 89% rename from tests/resources/nutrition/test_create_food_log_custom_minimal.py rename to tests/fitbit_client/resources/nutrition/test_create_food_log_custom_minimal.py index 9bf9777..814902d 100644 --- a/tests/resources/nutrition/test_create_food_log_custom_minimal.py +++ b/tests/fitbit_client/resources/nutrition/test_create_food_log_custom_minimal.py @@ -1,11 +1,11 @@ -# tests/resources/nutrition/test_create_food_log_custom_minimal.py +# tests/fitbit_client/resources/nutrition/test_create_food_log_custom_minimal.py """Tests for the create_food_log_custom_minimal endpoint.""" # Local imports # Local imports -from fitbit_client.resources.constants import MealType +from fitbit_client.resources._constants import MealType def test_create_food_log_custom_minimal(nutrition_resource, mock_response): diff --git a/tests/resources/nutrition/test_create_meal.py b/tests/fitbit_client/resources/nutrition/test_create_meal.py similarity index 94% rename from tests/resources/nutrition/test_create_meal.py rename to tests/fitbit_client/resources/nutrition/test_create_meal.py index 19787bb..4b1fe03 100644 --- a/tests/resources/nutrition/test_create_meal.py +++ b/tests/fitbit_client/resources/nutrition/test_create_meal.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_create_meal.py +# tests/fitbit_client/resources/nutrition/test_create_meal.py """Tests for the create_meal endpoint.""" diff --git a/tests/resources/nutrition/test_create_water_goal.py b/tests/fitbit_client/resources/nutrition/test_create_water_goal.py similarity index 91% rename from tests/resources/nutrition/test_create_water_goal.py rename to tests/fitbit_client/resources/nutrition/test_create_water_goal.py index ff2d91e..b04f9d7 100644 --- a/tests/resources/nutrition/test_create_water_goal.py +++ b/tests/fitbit_client/resources/nutrition/test_create_water_goal.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_create_water_goal.py +# tests/fitbit_client/resources/nutrition/test_create_water_goal.py """Tests for the create_water_goal endpoint.""" diff --git a/tests/resources/nutrition/test_create_water_log.py b/tests/fitbit_client/resources/nutrition/test_create_water_log.py similarity index 92% rename from tests/resources/nutrition/test_create_water_log.py rename to tests/fitbit_client/resources/nutrition/test_create_water_log.py index 77b66ce..5f589aa 100644 --- a/tests/resources/nutrition/test_create_water_log.py +++ b/tests/fitbit_client/resources/nutrition/test_create_water_log.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_create_water_log.py +# tests/fitbit_client/resources/nutrition/test_create_water_log.py """Tests for the create_water_log endpoint.""" @@ -9,7 +9,7 @@ # Local imports from fitbit_client.exceptions import InvalidDateException -from fitbit_client.resources.constants import WaterUnit +from fitbit_client.resources._constants import WaterUnit def test_create_water_log_success(nutrition_resource, mock_response): diff --git a/tests/resources/nutrition/test_custom_user_id.py b/tests/fitbit_client/resources/nutrition/test_custom_user_id.py similarity index 92% rename from tests/resources/nutrition/test_custom_user_id.py rename to tests/fitbit_client/resources/nutrition/test_custom_user_id.py index 3bee46c..fb40804 100644 --- a/tests/resources/nutrition/test_custom_user_id.py +++ b/tests/fitbit_client/resources/nutrition/test_custom_user_id.py @@ -1,11 +1,11 @@ -# tests/resources/nutrition/test_custom_user_id.py +# tests/fitbit_client/resources/nutrition/test_custom_user_id.py """Tests for the custom_user_id endpoint.""" # Local imports # Local imports -from fitbit_client.resources.constants import MealType +from fitbit_client.resources._constants import MealType def test_custom_user_id(nutrition_resource, mock_response): diff --git a/tests/resources/nutrition/test_delete_custom_food.py b/tests/fitbit_client/resources/nutrition/test_delete_custom_food.py similarity index 90% rename from tests/resources/nutrition/test_delete_custom_food.py rename to tests/fitbit_client/resources/nutrition/test_delete_custom_food.py index 2e3036f..002d5aa 100644 --- a/tests/resources/nutrition/test_delete_custom_food.py +++ b/tests/fitbit_client/resources/nutrition/test_delete_custom_food.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_delete_custom_food.py +# tests/fitbit_client/resources/nutrition/test_delete_custom_food.py """Tests for the delete_custom_food endpoint.""" diff --git a/tests/resources/nutrition/test_delete_favorite_foods.py b/tests/fitbit_client/resources/nutrition/test_delete_favorite_foods.py similarity index 90% rename from tests/resources/nutrition/test_delete_favorite_foods.py rename to tests/fitbit_client/resources/nutrition/test_delete_favorite_foods.py index 9e34c66..ca75a83 100644 --- a/tests/resources/nutrition/test_delete_favorite_foods.py +++ b/tests/fitbit_client/resources/nutrition/test_delete_favorite_foods.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_delete_favorite_foods.py +# tests/fitbit_client/resources/nutrition/test_delete_favorite_foods.py """Tests for the delete_favorite_foods endpoint.""" diff --git a/tests/resources/nutrition/test_delete_food_log.py b/tests/fitbit_client/resources/nutrition/test_delete_food_log.py similarity index 90% rename from tests/resources/nutrition/test_delete_food_log.py rename to tests/fitbit_client/resources/nutrition/test_delete_food_log.py index eb158ef..a7cd018 100644 --- a/tests/resources/nutrition/test_delete_food_log.py +++ b/tests/fitbit_client/resources/nutrition/test_delete_food_log.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_delete_food_log.py +# tests/fitbit_client/resources/nutrition/test_delete_food_log.py """Tests for the delete_food_log endpoint.""" diff --git a/tests/resources/nutrition/test_delete_meal.py b/tests/fitbit_client/resources/nutrition/test_delete_meal.py similarity index 90% rename from tests/resources/nutrition/test_delete_meal.py rename to tests/fitbit_client/resources/nutrition/test_delete_meal.py index a95609f..8f5ddee 100644 --- a/tests/resources/nutrition/test_delete_meal.py +++ b/tests/fitbit_client/resources/nutrition/test_delete_meal.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_delete_meal.py +# tests/fitbit_client/resources/nutrition/test_delete_meal.py """Tests for the delete_meal endpoint.""" diff --git a/tests/resources/nutrition/test_delete_water_log.py b/tests/fitbit_client/resources/nutrition/test_delete_water_log.py similarity index 90% rename from tests/resources/nutrition/test_delete_water_log.py rename to tests/fitbit_client/resources/nutrition/test_delete_water_log.py index 49c3dff..7434b57 100644 --- a/tests/resources/nutrition/test_delete_water_log.py +++ b/tests/fitbit_client/resources/nutrition/test_delete_water_log.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_delete_water_log.py +# tests/fitbit_client/resources/nutrition/test_delete_water_log.py """Tests for the delete_water_log endpoint.""" diff --git a/tests/resources/nutrition/test_error_handling.py b/tests/fitbit_client/resources/nutrition/test_error_handling.py similarity index 94% rename from tests/resources/nutrition/test_error_handling.py rename to tests/fitbit_client/resources/nutrition/test_error_handling.py index c4d3de6..d884226 100644 --- a/tests/resources/nutrition/test_error_handling.py +++ b/tests/fitbit_client/resources/nutrition/test_error_handling.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_error_handling.py +# tests/fitbit_client/resources/nutrition/test_error_handling.py """Tests for error handling in nutrition endpoints.""" @@ -15,7 +15,7 @@ from fitbit_client.exceptions import RateLimitExceededException from fitbit_client.exceptions import SystemException from fitbit_client.exceptions import ValidationException -from fitbit_client.resources.constants import MealType +from fitbit_client.resources._constants import MealType def test_error_handling(): diff --git a/tests/resources/nutrition/test_get_favorite_foods.py b/tests/fitbit_client/resources/nutrition/test_get_favorite_foods.py similarity index 91% rename from tests/resources/nutrition/test_get_favorite_foods.py rename to tests/fitbit_client/resources/nutrition/test_get_favorite_foods.py index f3eb8ef..e5920ab 100644 --- a/tests/resources/nutrition/test_get_favorite_foods.py +++ b/tests/fitbit_client/resources/nutrition/test_get_favorite_foods.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_get_favorite_foods.py +# tests/fitbit_client/resources/nutrition/test_get_favorite_foods.py """Tests for the get_favorite_foods endpoint.""" diff --git a/tests/resources/nutrition/test_get_food.py b/tests/fitbit_client/resources/nutrition/test_get_food.py similarity index 92% rename from tests/resources/nutrition/test_get_food.py rename to tests/fitbit_client/resources/nutrition/test_get_food.py index 3d89d7d..f096cfd 100644 --- a/tests/resources/nutrition/test_get_food.py +++ b/tests/fitbit_client/resources/nutrition/test_get_food.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_get_food.py +# tests/fitbit_client/resources/nutrition/test_get_food.py """Tests for the get_food endpoint.""" diff --git a/tests/resources/nutrition/test_get_food_goals.py b/tests/fitbit_client/resources/nutrition/test_get_food_goals.py similarity index 91% rename from tests/resources/nutrition/test_get_food_goals.py rename to tests/fitbit_client/resources/nutrition/test_get_food_goals.py index 7f509f4..f67f17e 100644 --- a/tests/resources/nutrition/test_get_food_goals.py +++ b/tests/fitbit_client/resources/nutrition/test_get_food_goals.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_get_food_goals.py +# tests/fitbit_client/resources/nutrition/test_get_food_goals.py """Tests for the get_food_goals endpoint.""" diff --git a/tests/resources/nutrition/test_get_food_locales.py b/tests/fitbit_client/resources/nutrition/test_get_food_locales.py similarity index 91% rename from tests/resources/nutrition/test_get_food_locales.py rename to tests/fitbit_client/resources/nutrition/test_get_food_locales.py index e599abe..ddee935 100644 --- a/tests/resources/nutrition/test_get_food_locales.py +++ b/tests/fitbit_client/resources/nutrition/test_get_food_locales.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_get_food_locales.py +# tests/fitbit_client/resources/nutrition/test_get_food_locales.py """Tests for the get_food_locales endpoint.""" diff --git a/tests/resources/nutrition/test_get_food_log.py b/tests/fitbit_client/resources/nutrition/test_get_food_log.py similarity index 96% rename from tests/resources/nutrition/test_get_food_log.py rename to tests/fitbit_client/resources/nutrition/test_get_food_log.py index fc7b08f..bbee982 100644 --- a/tests/resources/nutrition/test_get_food_log.py +++ b/tests/fitbit_client/resources/nutrition/test_get_food_log.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_get_food_log.py +# tests/fitbit_client/resources/nutrition/test_get_food_log.py """Tests for the get_food_log endpoint.""" diff --git a/tests/resources/nutrition/test_get_food_units.py b/tests/fitbit_client/resources/nutrition/test_get_food_units.py similarity index 92% rename from tests/resources/nutrition/test_get_food_units.py rename to tests/fitbit_client/resources/nutrition/test_get_food_units.py index f25c55b..d083384 100644 --- a/tests/resources/nutrition/test_get_food_units.py +++ b/tests/fitbit_client/resources/nutrition/test_get_food_units.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_get_food_units.py +# tests/fitbit_client/resources/nutrition/test_get_food_units.py """Tests for the get_food_units endpoint.""" diff --git a/tests/resources/nutrition/test_get_frequent_foods.py b/tests/fitbit_client/resources/nutrition/test_get_frequent_foods.py similarity index 91% rename from tests/resources/nutrition/test_get_frequent_foods.py rename to tests/fitbit_client/resources/nutrition/test_get_frequent_foods.py index b6122f8..2a5ba86 100644 --- a/tests/resources/nutrition/test_get_frequent_foods.py +++ b/tests/fitbit_client/resources/nutrition/test_get_frequent_foods.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_get_frequent_foods.py +# tests/fitbit_client/resources/nutrition/test_get_frequent_foods.py """Tests for the get_frequent_foods endpoint.""" diff --git a/tests/resources/nutrition/test_get_meal.py b/tests/fitbit_client/resources/nutrition/test_get_meal.py similarity index 93% rename from tests/resources/nutrition/test_get_meal.py rename to tests/fitbit_client/resources/nutrition/test_get_meal.py index f70a208..08be1fe 100644 --- a/tests/resources/nutrition/test_get_meal.py +++ b/tests/fitbit_client/resources/nutrition/test_get_meal.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_get_meal.py +# tests/fitbit_client/resources/nutrition/test_get_meal.py """Tests for the get_meal endpoint.""" diff --git a/tests/resources/nutrition/test_get_meals.py b/tests/fitbit_client/resources/nutrition/test_get_meals.py similarity index 93% rename from tests/resources/nutrition/test_get_meals.py rename to tests/fitbit_client/resources/nutrition/test_get_meals.py index b5cda88..9c95a77 100644 --- a/tests/resources/nutrition/test_get_meals.py +++ b/tests/fitbit_client/resources/nutrition/test_get_meals.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_get_meals.py +# tests/fitbit_client/resources/nutrition/test_get_meals.py """Tests for the get_meals endpoint.""" diff --git a/tests/resources/nutrition/test_get_recent_foods.py b/tests/fitbit_client/resources/nutrition/test_get_recent_foods.py similarity index 91% rename from tests/resources/nutrition/test_get_recent_foods.py rename to tests/fitbit_client/resources/nutrition/test_get_recent_foods.py index cfd53f4..d48168f 100644 --- a/tests/resources/nutrition/test_get_recent_foods.py +++ b/tests/fitbit_client/resources/nutrition/test_get_recent_foods.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_get_recent_foods.py +# tests/fitbit_client/resources/nutrition/test_get_recent_foods.py """Tests for the get_recent_foods endpoint.""" diff --git a/tests/resources/nutrition/test_get_water_goal.py b/tests/fitbit_client/resources/nutrition/test_get_water_goal.py similarity index 91% rename from tests/resources/nutrition/test_get_water_goal.py rename to tests/fitbit_client/resources/nutrition/test_get_water_goal.py index 48dd5ea..284633d 100644 --- a/tests/resources/nutrition/test_get_water_goal.py +++ b/tests/fitbit_client/resources/nutrition/test_get_water_goal.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_get_water_goal.py +# tests/fitbit_client/resources/nutrition/test_get_water_goal.py """Tests for the get_water_goal endpoint.""" diff --git a/tests/resources/nutrition/test_get_water_log.py b/tests/fitbit_client/resources/nutrition/test_get_water_log.py similarity index 95% rename from tests/resources/nutrition/test_get_water_log.py rename to tests/fitbit_client/resources/nutrition/test_get_water_log.py index 6bf7711..65dd8d2 100644 --- a/tests/resources/nutrition/test_get_water_log.py +++ b/tests/fitbit_client/resources/nutrition/test_get_water_log.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_get_water_log.py +# tests/fitbit_client/resources/nutrition/test_get_water_log.py """Tests for the get_water_log endpoint.""" diff --git a/tests/resources/nutrition/test_search_foods.py b/tests/fitbit_client/resources/nutrition/test_search_foods.py similarity index 92% rename from tests/resources/nutrition/test_search_foods.py rename to tests/fitbit_client/resources/nutrition/test_search_foods.py index d37ce40..d1494bc 100644 --- a/tests/resources/nutrition/test_search_foods.py +++ b/tests/fitbit_client/resources/nutrition/test_search_foods.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_search_foods.py +# tests/fitbit_client/resources/nutrition/test_search_foods.py """Tests for the search_foods endpoint.""" diff --git a/tests/resources/nutrition/test_update_food_log.py b/tests/fitbit_client/resources/nutrition/test_update_food_log.py similarity index 95% rename from tests/resources/nutrition/test_update_food_log.py rename to tests/fitbit_client/resources/nutrition/test_update_food_log.py index 8224f2c..7c17b8d 100644 --- a/tests/resources/nutrition/test_update_food_log.py +++ b/tests/fitbit_client/resources/nutrition/test_update_food_log.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_update_food_log.py +# tests/fitbit_client/resources/nutrition/test_update_food_log.py """Tests for the update_food_log endpoint.""" @@ -9,7 +9,7 @@ # Local imports from fitbit_client.exceptions import MissingParameterException -from fitbit_client.resources.constants import MealType +from fitbit_client.resources._constants import MealType def test_update_food_log_with_unit_amount_success(nutrition_resource, mock_response): diff --git a/tests/resources/nutrition/test_update_meal.py b/tests/fitbit_client/resources/nutrition/test_update_meal.py similarity index 95% rename from tests/resources/nutrition/test_update_meal.py rename to tests/fitbit_client/resources/nutrition/test_update_meal.py index a9bf190..36ae33d 100644 --- a/tests/resources/nutrition/test_update_meal.py +++ b/tests/fitbit_client/resources/nutrition/test_update_meal.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition/test_update_meal.py +# tests/fitbit_client/resources/nutrition/test_update_meal.py """Tests for the update_meal endpoint.""" diff --git a/tests/resources/nutrition/test_update_water_log.py b/tests/fitbit_client/resources/nutrition/test_update_water_log.py similarity index 92% rename from tests/resources/nutrition/test_update_water_log.py rename to tests/fitbit_client/resources/nutrition/test_update_water_log.py index f4af76d..e472197 100644 --- a/tests/resources/nutrition/test_update_water_log.py +++ b/tests/fitbit_client/resources/nutrition/test_update_water_log.py @@ -1,11 +1,11 @@ -# tests/resources/nutrition/test_update_water_log.py +# tests/fitbit_client/resources/nutrition/test_update_water_log.py """Tests for the update_water_log endpoint.""" # Local imports # Local imports -from fitbit_client.resources.constants import WaterUnit +from fitbit_client.resources._constants import WaterUnit def test_update_water_log_success(nutrition_resource, mock_response): diff --git a/tests/fitbit_client/resources/nutrition_timeseries/__init__.py b/tests/fitbit_client/resources/nutrition_timeseries/__init__.py new file mode 100644 index 0000000..8b98a36 --- /dev/null +++ b/tests/fitbit_client/resources/nutrition_timeseries/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/nutrition_timeseries/__init__.py diff --git a/tests/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date.py b/tests/fitbit_client/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date.py similarity index 90% rename from tests/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date.py rename to tests/fitbit_client/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date.py index fe43bd6..763dd48 100644 --- a/tests/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date.py +++ b/tests/fitbit_client/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date.py +# tests/fitbit_client/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date.py """Tests for the get_nutrition_timeseries_by_date endpoint.""" @@ -9,8 +9,8 @@ # Local imports from fitbit_client.exceptions import InvalidDateException -from fitbit_client.resources.constants import NutritionResource -from fitbit_client.resources.constants import Period +from fitbit_client.resources._constants import NutritionResource +from fitbit_client.resources._constants import Period def test_get_nutrition_timeseries_by_date_success( diff --git a/tests/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date_range.py b/tests/fitbit_client/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date_range.py similarity index 95% rename from tests/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date_range.py rename to tests/fitbit_client/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date_range.py index 96256b7..f8c778f 100644 --- a/tests/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date_range.py +++ b/tests/fitbit_client/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date_range.py @@ -1,4 +1,4 @@ -# tests/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date_range.py +# tests/fitbit_client/resources/nutrition_timeseries/test_get_nutrition_timeseries_by_date_range.py """Tests for the get_nutrition_timeseries_by_date_range endpoint.""" @@ -10,7 +10,7 @@ # Local imports from fitbit_client.exceptions import InvalidDateException from fitbit_client.exceptions import InvalidDateRangeException -from fitbit_client.resources.constants import NutritionResource +from fitbit_client.resources._constants import NutritionResource def test_get_nutrition_timeseries_by_date_range_success( diff --git a/tests/fitbit_client/resources/sleep/__init__.py b/tests/fitbit_client/resources/sleep/__init__.py new file mode 100644 index 0000000..1d92750 --- /dev/null +++ b/tests/fitbit_client/resources/sleep/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/sleep/__init__.py diff --git a/tests/resources/sleep/test_create_sleep_goals.py b/tests/fitbit_client/resources/sleep/test_create_sleep_goals.py similarity index 95% rename from tests/resources/sleep/test_create_sleep_goals.py rename to tests/fitbit_client/resources/sleep/test_create_sleep_goals.py index 0d20039..d719f6d 100644 --- a/tests/resources/sleep/test_create_sleep_goals.py +++ b/tests/fitbit_client/resources/sleep/test_create_sleep_goals.py @@ -1,4 +1,4 @@ -# tests/resources/sleep/test_create_sleep_goals.py +# tests/fitbit_client/resources/sleep/test_create_sleep_goals.py """Tests for the create_sleep_goals endpoint.""" diff --git a/tests/resources/sleep/test_create_sleep_log.py b/tests/fitbit_client/resources/sleep/test_create_sleep_log.py similarity index 97% rename from tests/resources/sleep/test_create_sleep_log.py rename to tests/fitbit_client/resources/sleep/test_create_sleep_log.py index 245a734..079ac63 100644 --- a/tests/resources/sleep/test_create_sleep_log.py +++ b/tests/fitbit_client/resources/sleep/test_create_sleep_log.py @@ -1,4 +1,4 @@ -# tests/resources/sleep/test_create_sleep_log.py +# tests/fitbit_client/resources/sleep/test_create_sleep_log.py """Tests for the create_sleep_log endpoint.""" diff --git a/tests/resources/sleep/test_delete_sleep_log.py b/tests/fitbit_client/resources/sleep/test_delete_sleep_log.py similarity index 91% rename from tests/resources/sleep/test_delete_sleep_log.py rename to tests/fitbit_client/resources/sleep/test_delete_sleep_log.py index a7819e8..b6f9ce5 100644 --- a/tests/resources/sleep/test_delete_sleep_log.py +++ b/tests/fitbit_client/resources/sleep/test_delete_sleep_log.py @@ -1,4 +1,4 @@ -# tests/resources/sleep/test_delete_sleep_log.py +# tests/fitbit_client/resources/sleep/test_delete_sleep_log.py """Tests for the delete_sleep_log endpoint.""" diff --git a/tests/resources/sleep/test_get_sleep_goals.py b/tests/fitbit_client/resources/sleep/test_get_sleep_goals.py similarity index 92% rename from tests/resources/sleep/test_get_sleep_goals.py rename to tests/fitbit_client/resources/sleep/test_get_sleep_goals.py index cf3bf33..dab37e3 100644 --- a/tests/resources/sleep/test_get_sleep_goals.py +++ b/tests/fitbit_client/resources/sleep/test_get_sleep_goals.py @@ -1,4 +1,4 @@ -# tests/resources/sleep/test_get_sleep_goals.py +# tests/fitbit_client/resources/sleep/test_get_sleep_goals.py """Tests for the get_sleep_goals endpoint.""" diff --git a/tests/resources/sleep/test_get_sleep_log_by_date.py b/tests/fitbit_client/resources/sleep/test_get_sleep_log_by_date.py similarity index 95% rename from tests/resources/sleep/test_get_sleep_log_by_date.py rename to tests/fitbit_client/resources/sleep/test_get_sleep_log_by_date.py index c434b15..0acccbe 100644 --- a/tests/resources/sleep/test_get_sleep_log_by_date.py +++ b/tests/fitbit_client/resources/sleep/test_get_sleep_log_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/sleep/test_get_sleep_log_by_date.py +# tests/fitbit_client/resources/sleep/test_get_sleep_log_by_date.py """Tests for the get_sleep_log_by_date endpoint.""" diff --git a/tests/resources/sleep/test_get_sleep_log_by_date_range.py b/tests/fitbit_client/resources/sleep/test_get_sleep_log_by_date_range.py similarity index 97% rename from tests/resources/sleep/test_get_sleep_log_by_date_range.py rename to tests/fitbit_client/resources/sleep/test_get_sleep_log_by_date_range.py index c06b5a3..e24f2ca 100644 --- a/tests/resources/sleep/test_get_sleep_log_by_date_range.py +++ b/tests/fitbit_client/resources/sleep/test_get_sleep_log_by_date_range.py @@ -1,4 +1,4 @@ -# tests/resources/sleep/test_get_sleep_log_by_date_range.py +# tests/fitbit_client/resources/sleep/test_get_sleep_log_by_date_range.py """Tests for the get_sleep_log_by_date_range endpoint.""" diff --git a/tests/resources/sleep/test_get_sleep_log_list.py b/tests/fitbit_client/resources/sleep/test_get_sleep_log_list.py similarity index 96% rename from tests/resources/sleep/test_get_sleep_log_list.py rename to tests/fitbit_client/resources/sleep/test_get_sleep_log_list.py index 3026945..914953f 100644 --- a/tests/resources/sleep/test_get_sleep_log_list.py +++ b/tests/fitbit_client/resources/sleep/test_get_sleep_log_list.py @@ -1,4 +1,4 @@ -# tests/resources/sleep/test_get_sleep_log_list.py +# tests/fitbit_client/resources/sleep/test_get_sleep_log_list.py """Tests for the get_sleep_log_list endpoint.""" @@ -12,7 +12,7 @@ # Local imports from fitbit_client.exceptions import InvalidDateException from fitbit_client.exceptions import PaginationException -from fitbit_client.resources.constants import SortDirection +from fitbit_client.resources._constants import SortDirection def test_get_sleep_log_list_success(sleep_resource, mock_oauth_session, mock_response_factory): @@ -107,7 +107,7 @@ def test_get_sleep_log_list_creates_iterator( # Just verify the type is PaginatedIterator # Local imports - from fitbit_client.resources.pagination import PaginatedIterator + from fitbit_client.resources._pagination import PaginatedIterator assert isinstance(result, PaginatedIterator) @@ -148,7 +148,7 @@ def test_sleep_log_list_pagination_attributes( ) -@patch("fitbit_client.resources.base.BaseResource._make_request") +@patch("fitbit_client.resources._base.BaseResource._make_request") def test_get_sleep_log_list_with_debug(mock_make_request, sleep_resource): """Test that debug mode returns None from get_sleep_log_list.""" # Mock _make_request to return None when debug=True diff --git a/tests/fitbit_client/resources/spo2/__init__.py b/tests/fitbit_client/resources/spo2/__init__.py new file mode 100644 index 0000000..c538c33 --- /dev/null +++ b/tests/fitbit_client/resources/spo2/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/spo2/__init__.py diff --git a/tests/resources/spo2/test_get_spo2_summary_by_date.py b/tests/fitbit_client/resources/spo2/test_get_spo2_summary_by_date.py similarity index 95% rename from tests/resources/spo2/test_get_spo2_summary_by_date.py rename to tests/fitbit_client/resources/spo2/test_get_spo2_summary_by_date.py index 04f5fee..c91eeb8 100644 --- a/tests/resources/spo2/test_get_spo2_summary_by_date.py +++ b/tests/fitbit_client/resources/spo2/test_get_spo2_summary_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/spo2/test_get_spo2_summary_by_date.py +# tests/fitbit_client/resources/spo2/test_get_spo2_summary_by_date.py """Tests for the get_spo2_summary_by_date endpoint.""" diff --git a/tests/resources/spo2/test_get_spo2_summary_by_interval.py b/tests/fitbit_client/resources/spo2/test_get_spo2_summary_by_interval.py similarity index 96% rename from tests/resources/spo2/test_get_spo2_summary_by_interval.py rename to tests/fitbit_client/resources/spo2/test_get_spo2_summary_by_interval.py index bc57895..668647f 100644 --- a/tests/resources/spo2/test_get_spo2_summary_by_interval.py +++ b/tests/fitbit_client/resources/spo2/test_get_spo2_summary_by_interval.py @@ -1,4 +1,4 @@ -# tests/resources/spo2/test_get_spo2_summary_by_interval.py +# tests/fitbit_client/resources/spo2/test_get_spo2_summary_by_interval.py """Tests for the get_spo2_summary_by_interval endpoint.""" diff --git a/tests/fitbit_client/resources/subscription/__init__.py b/tests/fitbit_client/resources/subscription/__init__.py new file mode 100644 index 0000000..83dd885 --- /dev/null +++ b/tests/fitbit_client/resources/subscription/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/subscription/__init__.py diff --git a/tests/resources/subscription/test_create_subscription.py b/tests/fitbit_client/resources/subscription/test_create_subscription.py similarity index 83% rename from tests/resources/subscription/test_create_subscription.py rename to tests/fitbit_client/resources/subscription/test_create_subscription.py index 65a0efc..c300e56 100644 --- a/tests/resources/subscription/test_create_subscription.py +++ b/tests/fitbit_client/resources/subscription/test_create_subscription.py @@ -1,4 +1,4 @@ -# tests/resources/subscription/test_create_subscription.py +# tests/fitbit_client/resources/subscription/test_create_subscription.py """Tests for the create_subscription endpoint.""" diff --git a/tests/resources/subscription/test_delete_subscription.py b/tests/fitbit_client/resources/subscription/test_delete_subscription.py similarity index 83% rename from tests/resources/subscription/test_delete_subscription.py rename to tests/fitbit_client/resources/subscription/test_delete_subscription.py index af45ccc..7e9c5fa 100644 --- a/tests/resources/subscription/test_delete_subscription.py +++ b/tests/fitbit_client/resources/subscription/test_delete_subscription.py @@ -1,4 +1,4 @@ -# tests/resources/subscription/test_delete_subscription.py +# tests/fitbit_client/resources/subscription/test_delete_subscription.py """Tests for the delete_subscription endpoint.""" diff --git a/tests/resources/subscription/test_get_subscription_list.py b/tests/fitbit_client/resources/subscription/test_get_subscription_list.py similarity index 92% rename from tests/resources/subscription/test_get_subscription_list.py rename to tests/fitbit_client/resources/subscription/test_get_subscription_list.py index ee56379..85bfb2c 100644 --- a/tests/resources/subscription/test_get_subscription_list.py +++ b/tests/fitbit_client/resources/subscription/test_get_subscription_list.py @@ -1,4 +1,4 @@ -# tests/resources/subscription/test_get_subscription_list.py +# tests/fitbit_client/resources/subscription/test_get_subscription_list.py """Tests for the get_subscription_list endpoint.""" @@ -8,7 +8,7 @@ from unittest.mock import Mock # Local imports -from fitbit_client.resources.constants import SubscriptionCategory +from fitbit_client.resources._constants import SubscriptionCategory def test_get_subscription_list_success(subscription_resource): diff --git a/tests/fitbit_client/resources/temperature/__init__.py b/tests/fitbit_client/resources/temperature/__init__.py new file mode 100644 index 0000000..4c6da41 --- /dev/null +++ b/tests/fitbit_client/resources/temperature/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/temperature/__init__.py diff --git a/tests/resources/temperature/test_get_temperature_core_summary_by_date.py b/tests/fitbit_client/resources/temperature/test_get_temperature_core_summary_by_date.py similarity index 95% rename from tests/resources/temperature/test_get_temperature_core_summary_by_date.py rename to tests/fitbit_client/resources/temperature/test_get_temperature_core_summary_by_date.py index 0f0ca65..f888485 100644 --- a/tests/resources/temperature/test_get_temperature_core_summary_by_date.py +++ b/tests/fitbit_client/resources/temperature/test_get_temperature_core_summary_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/temperature/test_get_temperature_core_summary_by_date.py +# tests/fitbit_client/resources/temperature/test_get_temperature_core_summary_by_date.py """Tests for the get_temperature_core_summary_by_date endpoint.""" diff --git a/tests/resources/temperature/test_get_temperature_core_summary_by_interval.py b/tests/fitbit_client/resources/temperature/test_get_temperature_core_summary_by_interval.py similarity index 97% rename from tests/resources/temperature/test_get_temperature_core_summary_by_interval.py rename to tests/fitbit_client/resources/temperature/test_get_temperature_core_summary_by_interval.py index adf5123..05273de 100644 --- a/tests/resources/temperature/test_get_temperature_core_summary_by_interval.py +++ b/tests/fitbit_client/resources/temperature/test_get_temperature_core_summary_by_interval.py @@ -1,4 +1,4 @@ -# tests/resources/temperature/test_get_temperature_core_summary_by_interval.py +# tests/fitbit_client/resources/temperature/test_get_temperature_core_summary_by_interval.py """Tests for the get_temperature_core_summary_by_interval endpoint.""" diff --git a/tests/resources/temperature/test_get_temperature_skin_summary_by_date.py b/tests/fitbit_client/resources/temperature/test_get_temperature_skin_summary_by_date.py similarity index 95% rename from tests/resources/temperature/test_get_temperature_skin_summary_by_date.py rename to tests/fitbit_client/resources/temperature/test_get_temperature_skin_summary_by_date.py index 26f7189..95140e2 100644 --- a/tests/resources/temperature/test_get_temperature_skin_summary_by_date.py +++ b/tests/fitbit_client/resources/temperature/test_get_temperature_skin_summary_by_date.py @@ -1,4 +1,4 @@ -# tests/resources/temperature/test_get_temperature_skin_summary_by_date.py +# tests/fitbit_client/resources/temperature/test_get_temperature_skin_summary_by_date.py """Tests for the get_temperature_skin_summary_by_date endpoint.""" diff --git a/tests/resources/temperature/test_get_temperature_skin_summary_by_interval.py b/tests/fitbit_client/resources/temperature/test_get_temperature_skin_summary_by_interval.py similarity index 97% rename from tests/resources/temperature/test_get_temperature_skin_summary_by_interval.py rename to tests/fitbit_client/resources/temperature/test_get_temperature_skin_summary_by_interval.py index 4bc755c..f6c1241 100644 --- a/tests/resources/temperature/test_get_temperature_skin_summary_by_interval.py +++ b/tests/fitbit_client/resources/temperature/test_get_temperature_skin_summary_by_interval.py @@ -1,4 +1,4 @@ -# tests/resources/temperature/test_get_temperature_skin_summary_by_interval.py +# tests/fitbit_client/resources/temperature/test_get_temperature_skin_summary_by_interval.py """Tests for the get_temperature_skin_summary_by_interval endpoint.""" diff --git a/tests/resources/test_base.py b/tests/fitbit_client/resources/test_base.py similarity index 97% rename from tests/resources/test_base.py rename to tests/fitbit_client/resources/test_base.py index d54526f..4708224 100644 --- a/tests/resources/test_base.py +++ b/tests/fitbit_client/resources/test_base.py @@ -1,4 +1,4 @@ -# tests/resources/test_base.py +# tests/fitbit_client/resources/test_base.py """Tests for BaseResource""" @@ -28,7 +28,7 @@ from fitbit_client.exceptions import RateLimitExceededException from fitbit_client.exceptions import SystemException from fitbit_client.exceptions import ValidationException -from fitbit_client.resources.base import BaseResource +from fitbit_client.resources._base import BaseResource # ----------------------------------------------------------------------------- # 1. Initialization and Basic Setup @@ -37,7 +37,7 @@ def test_initialization_sets_locale_headers(mock_oauth_session): """Test initialization properly sets locale-specific headers""" - with patch("fitbit_client.resources.base.getLogger"): + with patch("fitbit_client.resources._base.getLogger"): resource = BaseResource(mock_oauth_session, "fr_FR", "fr") assert resource.headers == {"Accept-Locale": "fr_FR", "Accept-Language": "fr"} assert resource.oauth == mock_oauth_session @@ -84,7 +84,7 @@ def _make_request(): assert method_name == "wrapper_method" -@patch("fitbit_client.resources.base.currentframe") +@patch("fitbit_client.resources._base.currentframe") def test_get_calling_method_with_frames(mock_frame, base_resource): """Test getting the calling method name with specific frame setup""" # Set up the frame chain: api_method -> _make_request -> _get_calling_method @@ -109,7 +109,7 @@ def test_get_calling_method_with_frames(mock_frame, base_resource): def test_get_calling_method_unknown(base_resource): """Test fallback value when calling method can't be determined""" # This tests line 165 in base.py - with patch("fitbit_client.resources.base.currentframe", return_value=None): + with patch("fitbit_client.resources._base.currentframe", return_value=None): method_name = base_resource._get_calling_method() assert method_name == "unknown" @@ -471,7 +471,7 @@ def test_get_retry_after_without_header(base_resource): assert retry_seconds == 10 -@patch("fitbit_client.resources.base.sleep") +@patch("fitbit_client.resources._base.sleep") def test_rate_limit_retries( mock_sleep, base_resource, mock_oauth_session, mock_response_factory, mock_logger ): @@ -509,7 +509,7 @@ def test_rate_limit_retries( assert mock_oauth_session.request.call_count == 2 -@patch("fitbit_client.resources.base.sleep") +@patch("fitbit_client.resources._base.sleep") def test_rate_limit_retry_with_backoff( mock_sleep, base_resource, mock_oauth_session, mock_response_factory ): @@ -553,7 +553,7 @@ def test_rate_limit_retry_with_backoff( assert mock_oauth_session.request.call_count == 3 -@patch("fitbit_client.resources.base.sleep") +@patch("fitbit_client.resources._base.sleep") def test_rate_limit_max_retries_exhausted( mock_sleep, base_resource, mock_oauth_session, mock_response_factory ): @@ -596,7 +596,7 @@ def test_rate_limit_max_retries_exhausted( @patch("builtins.print") -@patch("fitbit_client.resources.base.CurlDebugMixin._build_curl_command") +@patch("fitbit_client.resources._base.CurlDebugMixin._build_curl_command") def test_make_direct_request_with_debug(mock_build_curl, mock_print, base_resource): """Test that _make_direct_request returns empty dict when debug=True.""" # Mock the _build_curl_command method @@ -617,7 +617,7 @@ def test_make_direct_request_with_debug(mock_build_curl, mock_print, base_resour mock_print.assert_any_call("\n# Debug curl command for test_pagination (pagination):") -@patch("fitbit_client.resources.base.BaseResource._handle_json_response") +@patch("fitbit_client.resources._base.BaseResource._handle_json_response") def test_make_direct_request_success(mock_handle_json, base_resource): """Test successful direct request with JSON response.""" # Mock the OAuth session @@ -643,7 +643,7 @@ def test_make_direct_request_success(mock_handle_json, base_resource): mock_handle_json.assert_called_once() -@patch("fitbit_client.resources.base.BaseResource._get_calling_method") +@patch("fitbit_client.resources._base.BaseResource._get_calling_method") def test_make_direct_request_unexpected_content_type(mock_get_calling, base_resource, mock_logger): """Test handling of unexpected content type in direct request.""" mock_get_calling.return_value = "test_method" @@ -668,8 +668,8 @@ def test_make_direct_request_unexpected_content_type(mock_get_calling, base_reso assert "Unexpected content type" in mock_logger.error.call_args[0][0] -@patch("fitbit_client.resources.base.sleep") -@patch("fitbit_client.resources.base.BaseResource._get_retry_after") +@patch("fitbit_client.resources._base.sleep") +@patch("fitbit_client.resources._base.BaseResource._get_retry_after") def test_direct_request_rate_limit_retry(mock_get_retry, mock_sleep, base_resource, mock_logger): """Test rate limit retry for direct requests.""" @@ -727,9 +727,9 @@ def test_direct_request_rate_limit_retry(mock_get_retry, mock_sleep, base_resour assert False, "Rate limit warning log not found" -@patch("fitbit_client.resources.base.sleep") -@patch("fitbit_client.resources.base.BaseResource._handle_error_response") -@patch("fitbit_client.resources.base.BaseResource._should_retry_request") +@patch("fitbit_client.resources._base.sleep") +@patch("fitbit_client.resources._base.BaseResource._handle_error_response") +@patch("fitbit_client.resources._base.BaseResource._should_retry_request") def test_make_direct_request_rate_limit_retry( mock_should_retry, mock_handle_error, mock_sleep, base_resource, mock_logger ): @@ -763,7 +763,7 @@ def test_make_direct_request_rate_limit_retry( # Call the method with patch( - "fitbit_client.resources.base.BaseResource._handle_json_response" + "fitbit_client.resources._base.BaseResource._handle_json_response" ) as mock_handle_json: mock_handle_json.return_value = {"data": "success"} result = base_resource._make_direct_request("/test") @@ -775,7 +775,7 @@ def test_make_direct_request_rate_limit_retry( assert mock_logger.warning.call_count == 1 -@patch("fitbit_client.resources.base.BaseResource._get_calling_method") +@patch("fitbit_client.resources._base.BaseResource._get_calling_method") def test_make_direct_request_exception(mock_get_calling, base_resource, mock_logger): """Test handling of exceptions in direct request.""" mock_get_calling.return_value = "test_method" @@ -1015,7 +1015,7 @@ def test_rate_limit_headers_logging(base_resource, mock_logger): assert False, "Rate limit status log not found" -@patch("fitbit_client.resources.base.sleep") +@patch("fitbit_client.resources._base.sleep") def test_rate_limit_retry_with_fitbit_headers( mock_sleep, base_resource, mock_oauth_session, mock_logger ): @@ -1076,7 +1076,7 @@ def test_rate_limit_retry_with_fitbit_headers( assert False, "Rate limit warning log not found" -@patch("fitbit_client.resources.base.sleep") +@patch("fitbit_client.resources._base.sleep") def test_rate_limit_retry_without_response( mock_sleep, base_resource, mock_oauth_session, mock_logger ): @@ -1114,7 +1114,7 @@ def test_rate_limit_retry_without_response( mock_sleep.assert_called_once_with(60) # First retry is just base value -@patch("fitbit_client.resources.base.sleep") +@patch("fitbit_client.resources._base.sleep") def test_direct_request_retry_without_response(mock_sleep, base_resource, mock_logger): """Test direct request retry for rate limit errors without a response object.""" error_response = Mock() @@ -1154,8 +1154,8 @@ def test_direct_request_retry_without_response(mock_sleep, base_resource, mock_l mock_sleep.assert_called_once_with(60) # Just the base value for first retry -@patch("fitbit_client.resources.base.sleep") -@patch("fitbit_client.resources.base.BaseResource._get_retry_after") +@patch("fitbit_client.resources._base.sleep") +@patch("fitbit_client.resources._base.BaseResource._get_retry_after") def test_direct_request_retry_with_fitbit_headers( mock_get_retry, mock_sleep, base_resource, mock_logger ): diff --git a/tests/resources/test_docstrings.py b/tests/fitbit_client/resources/test_docstrings.py similarity index 99% rename from tests/resources/test_docstrings.py rename to tests/fitbit_client/resources/test_docstrings.py index 28299e4..de6872b 100644 --- a/tests/resources/test_docstrings.py +++ b/tests/fitbit_client/resources/test_docstrings.py @@ -1,4 +1,4 @@ -# tests/resources/test_docstrings.py +# tests/fitbit_client/resources/test_docstrings.py # Standard library imports from inspect import getdoc diff --git a/tests/resources/test_pagination.py b/tests/fitbit_client/resources/test_pagination.py similarity index 96% rename from tests/resources/test_pagination.py rename to tests/fitbit_client/resources/test_pagination.py index 9fb5ae1..023203d 100644 --- a/tests/resources/test_pagination.py +++ b/tests/fitbit_client/resources/test_pagination.py @@ -1,4 +1,4 @@ -# tests/resources/test_pagination.py +# tests/fitbit_client/resources/test_pagination.py """Tests for the Pagination module.""" @@ -14,8 +14,8 @@ from pytest import fixture # Local imports -from fitbit_client.resources.pagination import PaginatedIterator -from fitbit_client.resources.pagination import create_paginated_iterator +from fitbit_client.resources._pagination import PaginatedIterator +from fitbit_client.resources._pagination import create_paginated_iterator from fitbit_client.utils.types import JSONDict @@ -69,15 +69,15 @@ def test_import_with_type_checking(): typing.TYPE_CHECKING = True # Force reload of the module - if "fitbit_client.resources.pagination" in sys.modules: - del sys.modules["fitbit_client.resources.pagination"] + if "fitbit_client.resources._pagination" in sys.modules: + del sys.modules["fitbit_client.resources._pagination"] # Now import the module with TYPE_CHECKING as True # Local imports - from fitbit_client.resources.pagination import PaginatedIterator + from fitbit_client.resources._pagination import PaginatedIterator # This should have imported BaseResource due to TYPE_CHECKING being True - assert "fitbit_client.resources.base" in sys.modules + assert "fitbit_client.resources._base" in sys.modules finally: # Restore TYPE_CHECKING to its original value diff --git a/tests/fitbit_client/resources/user/__init__.py b/tests/fitbit_client/resources/user/__init__.py new file mode 100644 index 0000000..9dc2fed --- /dev/null +++ b/tests/fitbit_client/resources/user/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/resources/user/__init__.py diff --git a/tests/resources/user/test_get_badges.py b/tests/fitbit_client/resources/user/test_get_badges.py similarity index 98% rename from tests/resources/user/test_get_badges.py rename to tests/fitbit_client/resources/user/test_get_badges.py index 7d5e27f..0ef985d 100644 --- a/tests/resources/user/test_get_badges.py +++ b/tests/fitbit_client/resources/user/test_get_badges.py @@ -1,4 +1,4 @@ -# tests/resources/user/test_get_badges.py +# tests/fitbit_client/resources/user/test_get_badges.py """Tests for the get_badges endpoint.""" diff --git a/tests/resources/user/test_get_profile.py b/tests/fitbit_client/resources/user/test_get_profile.py similarity index 97% rename from tests/resources/user/test_get_profile.py rename to tests/fitbit_client/resources/user/test_get_profile.py index 956ecfb..4c6cb91 100644 --- a/tests/resources/user/test_get_profile.py +++ b/tests/fitbit_client/resources/user/test_get_profile.py @@ -1,4 +1,4 @@ -# tests/resources/user/test_get_profile.py +# tests/fitbit_client/resources/user/test_get_profile.py """Tests for the get_profile endpoint.""" diff --git a/tests/resources/user/test_update_profile.py b/tests/fitbit_client/resources/user/test_update_profile.py similarity index 96% rename from tests/resources/user/test_update_profile.py rename to tests/fitbit_client/resources/user/test_update_profile.py index bcd6ce7..37348c8 100644 --- a/tests/resources/user/test_update_profile.py +++ b/tests/fitbit_client/resources/user/test_update_profile.py @@ -1,4 +1,4 @@ -# tests/resources/user/test_update_profile.py +# tests/fitbit_client/resources/user/test_update_profile.py """Tests for the update_profile endpoint.""" @@ -9,9 +9,9 @@ # Local imports from fitbit_client.exceptions import InvalidDateException -from fitbit_client.resources.constants import ClockTimeFormat -from fitbit_client.resources.constants import Gender -from fitbit_client.resources.constants import StartDayOfWeek +from fitbit_client.resources._constants import ClockTimeFormat +from fitbit_client.resources._constants import Gender +from fitbit_client.resources._constants import StartDayOfWeek def test_update_profile_success(user_resource, mock_oauth_session, mock_response_factory): diff --git a/tests/test_client.py b/tests/fitbit_client/test_client.py similarity index 98% rename from tests/test_client.py rename to tests/fitbit_client/test_client.py index dbf881a..f93653d 100644 --- a/tests/test_client.py +++ b/tests/fitbit_client/test_client.py @@ -1,4 +1,4 @@ -# tests/test_client.py +# tests/fitbit_client/test_client.py # Standard library imports from unittest.mock import MagicMock diff --git a/tests/test_exceptions.py b/tests/fitbit_client/test_exceptions.py similarity index 99% rename from tests/test_exceptions.py rename to tests/fitbit_client/test_exceptions.py index d50f568..a677bd5 100644 --- a/tests/test_exceptions.py +++ b/tests/fitbit_client/test_exceptions.py @@ -1,4 +1,4 @@ -# tests/test_exceptions.py +# tests/fitbit_client/test_exceptions.py # Standard library imports from typing import List @@ -31,7 +31,7 @@ from fitbit_client.exceptions import STATUS_CODE_EXCEPTIONS from fitbit_client.exceptions import SystemException from fitbit_client.exceptions import ValidationException -from fitbit_client.resources.constants import IntradayDetailLevel +from fitbit_client.resources._constants import IntradayDetailLevel class TestBaseException: diff --git a/tests/fitbit_client/utils/__init__.py b/tests/fitbit_client/utils/__init__.py new file mode 100644 index 0000000..c30d175 --- /dev/null +++ b/tests/fitbit_client/utils/__init__.py @@ -0,0 +1 @@ +# tests/fitbit_client/utils/__init__.py diff --git a/tests/utils/test_curl_debug_mixin.py b/tests/fitbit_client/utils/test_curl_debug_mixin.py similarity index 98% rename from tests/utils/test_curl_debug_mixin.py rename to tests/fitbit_client/utils/test_curl_debug_mixin.py index 9411ffa..dff9948 100644 --- a/tests/utils/test_curl_debug_mixin.py +++ b/tests/fitbit_client/utils/test_curl_debug_mixin.py @@ -1,4 +1,4 @@ -# tests/utils/test_curl_debug_mixin.py +# tests/fitbit_client/utils/test_curl_debug_mixin.py """Tests for CurlDebugMixin""" diff --git a/tests/utils/test_date_validation.py b/tests/fitbit_client/utils/test_date_validation.py similarity index 99% rename from tests/utils/test_date_validation.py rename to tests/fitbit_client/utils/test_date_validation.py index 18c036b..34bee4b 100644 --- a/tests/utils/test_date_validation.py +++ b/tests/fitbit_client/utils/test_date_validation.py @@ -1,4 +1,4 @@ -# tests/utils/test_date_validation.py +# tests/fitbit_client/utils/test_date_validation.py # Standard library imports from typing import Any diff --git a/tests/utils/test_helpers.py b/tests/fitbit_client/utils/test_helpers.py similarity index 99% rename from tests/utils/test_helpers.py rename to tests/fitbit_client/utils/test_helpers.py index 8d53163..a2419bc 100644 --- a/tests/utils/test_helpers.py +++ b/tests/fitbit_client/utils/test_helpers.py @@ -1,4 +1,4 @@ -# tests/utils/test_helpers.py +# tests/fitbit_client/utils/test_helpers.py """ Tests for utility functions in the fitbit_client.utils.helpers module. diff --git a/tests/utils/test_pagination_validation.py b/tests/fitbit_client/utils/test_pagination_validation.py similarity index 97% rename from tests/utils/test_pagination_validation.py rename to tests/fitbit_client/utils/test_pagination_validation.py index 0cc8a55..09ea490 100644 --- a/tests/utils/test_pagination_validation.py +++ b/tests/fitbit_client/utils/test_pagination_validation.py @@ -1,4 +1,4 @@ -# tests/utils/test_pagination_validation.py +# tests/fitbit_client/utils/test_pagination_validation.py # Third party imports @@ -6,7 +6,7 @@ # Local imports from fitbit_client.exceptions import PaginationException -from fitbit_client.resources.constants import SortDirection +from fitbit_client.resources._constants import SortDirection from fitbit_client.utils.pagination_validation import validate_pagination_params diff --git a/tests/resources/__init__.py b/tests/resources/__init__.py deleted file mode 100644 index 87a9a12..0000000 --- a/tests/resources/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/__init__.py diff --git a/tests/resources/active_zone_minutes/__init__.py b/tests/resources/active_zone_minutes/__init__.py deleted file mode 100644 index c3600f9..0000000 --- a/tests/resources/active_zone_minutes/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/active_zone_minutes/__init__.py diff --git a/tests/resources/activity/__init__.py b/tests/resources/activity/__init__.py deleted file mode 100644 index a8063d4..0000000 --- a/tests/resources/activity/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/activity/__init__.py diff --git a/tests/resources/activity_timeseries/__init__.py b/tests/resources/activity_timeseries/__init__.py deleted file mode 100644 index 5385c7f..0000000 --- a/tests/resources/activity_timeseries/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/activity_timeseries/__init__.py diff --git a/tests/resources/body/__init__.py b/tests/resources/body/__init__.py deleted file mode 100644 index ce4c529..0000000 --- a/tests/resources/body/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/body/__init__.py diff --git a/tests/resources/body_timeseries/__init__.py b/tests/resources/body_timeseries/__init__.py deleted file mode 100644 index 57a98da..0000000 --- a/tests/resources/body_timeseries/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/body_timeseries/__init__.py diff --git a/tests/resources/breathing_rate/__init__.py b/tests/resources/breathing_rate/__init__.py deleted file mode 100644 index 6731ad4..0000000 --- a/tests/resources/breathing_rate/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/breathing_rate/__init__.py diff --git a/tests/resources/cardio_fitness_score/__init__.py b/tests/resources/cardio_fitness_score/__init__.py deleted file mode 100644 index 95e13fa..0000000 --- a/tests/resources/cardio_fitness_score/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/cardio_fitness_score/__init__.py diff --git a/tests/resources/device/__init__.py b/tests/resources/device/__init__.py deleted file mode 100644 index 2672235..0000000 --- a/tests/resources/device/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/device/__init__.py diff --git a/tests/resources/electrocardiogram/__init__.py b/tests/resources/electrocardiogram/__init__.py deleted file mode 100644 index 3958276..0000000 --- a/tests/resources/electrocardiogram/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/electrocardiogram/__init__.py diff --git a/tests/resources/friends/__init__.py b/tests/resources/friends/__init__.py deleted file mode 100644 index 7448d55..0000000 --- a/tests/resources/friends/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/friends/__init__.py diff --git a/tests/resources/heartrate_timeseries/__init__.py b/tests/resources/heartrate_timeseries/__init__.py deleted file mode 100644 index 80e2485..0000000 --- a/tests/resources/heartrate_timeseries/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/heartrate_timeseries/__init__.py diff --git a/tests/resources/heartrate_variability/__init__.py b/tests/resources/heartrate_variability/__init__.py deleted file mode 100644 index 670d6c2..0000000 --- a/tests/resources/heartrate_variability/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/heartrate_variability/__init__.py diff --git a/tests/resources/intraday/__init__.py b/tests/resources/intraday/__init__.py deleted file mode 100644 index 50274c0..0000000 --- a/tests/resources/intraday/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/intraday/__init__.py diff --git a/tests/resources/irregular_rhythm_notifications/__init__.py b/tests/resources/irregular_rhythm_notifications/__init__.py deleted file mode 100644 index bb2fadc..0000000 --- a/tests/resources/irregular_rhythm_notifications/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/irregular_rhythm_notifications/__init__.py diff --git a/tests/resources/nutrition/__init__.py b/tests/resources/nutrition/__init__.py deleted file mode 100644 index 1bbd843..0000000 --- a/tests/resources/nutrition/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/nutrition/__init__.py diff --git a/tests/resources/nutrition_timeseries/__init__.py b/tests/resources/nutrition_timeseries/__init__.py deleted file mode 100644 index 85dbe5e..0000000 --- a/tests/resources/nutrition_timeseries/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/nutrition_timeseries/__init__.py diff --git a/tests/resources/sleep/__init__.py b/tests/resources/sleep/__init__.py deleted file mode 100644 index fba06eb..0000000 --- a/tests/resources/sleep/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/sleep/__init__.py diff --git a/tests/resources/spo2/__init__.py b/tests/resources/spo2/__init__.py deleted file mode 100644 index 36d1065..0000000 --- a/tests/resources/spo2/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/spo2/__init__.py diff --git a/tests/resources/subscription/__init__.py b/tests/resources/subscription/__init__.py deleted file mode 100644 index 101064d..0000000 --- a/tests/resources/subscription/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/subscription/__init__.py diff --git a/tests/resources/temperature/__init__.py b/tests/resources/temperature/__init__.py deleted file mode 100644 index a024dbe..0000000 --- a/tests/resources/temperature/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/temperature/__init__.py diff --git a/tests/resources/user/__init__.py b/tests/resources/user/__init__.py deleted file mode 100644 index 28e29c3..0000000 --- a/tests/resources/user/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/resources/user/__init__.py diff --git a/tests/utils/__init__.py b/tests/utils/__init__.py deleted file mode 100644 index b2d7f21..0000000 --- a/tests/utils/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# tests/utils/__init__.py