diff --git a/codegen/TogglPythonClientCodegen/src/main/resources/TogglPythonClientCodegen/api_test.mustache b/codegen/TogglPythonClientCodegen/src/main/resources/TogglPythonClientCodegen/api_test.mustache index 824b424..5fbe21e 100644 --- a/codegen/TogglPythonClientCodegen/src/main/resources/TogglPythonClientCodegen/api_test.mustache +++ b/codegen/TogglPythonClientCodegen/src/main/resources/TogglPythonClientCodegen/api_test.mustache @@ -19,7 +19,9 @@ def test_{{classname}}_{{{operationId}}}(api): {{{summary}}} # noqa: E501 {{/summary}} """ - pass + response = api.{{{operationId}}}() + + assert response {{/operation}} {{/operations}} diff --git a/toggl_py/tests/api/__init__.py b/toggl_py/tests/api/__init__.py deleted file mode 100644 index c4cdd94..0000000 --- a/toggl_py/tests/api/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -""" -Public Toggl API. Note: We use BasicAuth in a specific way. By the standard you provide `Authentication` header with `base64(user_name:password)` as a `credential`. In our case it will be `base64(user_name:api_token)`. # noqa: E501 - -This file is auto generated by the swagger code generator program. -Do not edit this file manually. - -OpenAPI spec version: 9 -Generated by: https://github.com/compilerla/toggl-py -""" diff --git a/toggl_py/tests/api/test__api.py b/toggl_py/tests/api/test__api.py deleted file mode 100644 index 02cfd73..0000000 --- a/toggl_py/tests/api/test__api.py +++ /dev/null @@ -1,28 +0,0 @@ -""" -Public Toggl API. Note: We use BasicAuth in a specific way. By the standard you provide `Authentication` header with `base64(user_name:password)` as a `credential`. In our case it will be `base64(user_name:api_token)`. # noqa: E501 - -This file is auto generated by the swagger code generator program. -Do not edit this file manually. - -OpenAPI spec version: 9 -Generated by: https://github.com/compilerla/toggl-py -""" - -import pytest - -import toggl # noqa: F401 -from toggl.api.default_api import DefaultApi -from toggl.rest import ApiException # noqa: F401 - - -@pytest.fixture -def api(): - return DefaultApi() - - -def test_DefaultApi_delete_organization_group(api): - """Test case for delete_organization_group - - Deletes group # noqa: E501 - """ - pass diff --git a/toggl_py/tests/api/test_alerts_api.py b/toggl_py/tests/api/test_alerts_api.py index 5cb7fda..5d1084d 100644 --- a/toggl_py/tests/api/test_alerts_api.py +++ b/toggl_py/tests/api/test_alerts_api.py @@ -25,7 +25,9 @@ def test_AlertsApi_delete_alerts(api): Alerts # noqa: E501 """ - pass + response = api.delete_alerts() + + assert response def test_AlertsApi_get_alerts(api): @@ -33,7 +35,9 @@ def test_AlertsApi_get_alerts(api): Alerts # noqa: E501 """ - pass + response = api.get_alerts() + + assert response def test_AlertsApi_post_alerts(api): @@ -41,7 +45,9 @@ def test_AlertsApi_post_alerts(api): Alerts # noqa: E501 """ - pass + response = api.post_alerts() + + assert response def test_AlertsApi_put_alerts(api): @@ -49,4 +55,6 @@ def test_AlertsApi_put_alerts(api): Alerts # noqa: E501 """ - pass + response = api.put_alerts() + + assert response diff --git a/toggl_py/tests/api/test_approvals_api.py b/toggl_py/tests/api/test_approvals_api.py index 227e7e5..b1493ae 100644 --- a/toggl_py/tests/api/test_approvals_api.py +++ b/toggl_py/tests/api/test_approvals_api.py @@ -25,7 +25,9 @@ def test_ApprovalsApi_delete_timesheet_setups(api): Delete a timesheet setup # noqa: E501 """ - pass + response = api.delete_timesheet_setups() + + assert response def test_ApprovalsApi_get_timesheet_setups(api): @@ -33,7 +35,9 @@ def test_ApprovalsApi_get_timesheet_setups(api): Get timesheet setups # noqa: E501 """ - pass + response = api.get_timesheet_setups() + + assert response def test_ApprovalsApi_get_workspace_timesheet_hours_handler(api): @@ -41,7 +45,9 @@ def test_ApprovalsApi_get_workspace_timesheet_hours_handler(api): Get timesheets hours # noqa: E501 """ - pass + response = api.get_workspace_timesheet_hours_handler() + + assert response def test_ApprovalsApi_get_workspace_timesheet_time_entries_handler(api): @@ -49,7 +55,9 @@ def test_ApprovalsApi_get_workspace_timesheet_time_entries_handler(api): Get timesheet time entries # noqa: E501 """ - pass + response = api.get_workspace_timesheet_time_entries_handler() + + assert response def test_ApprovalsApi_get_workspace_timesheets_handler(api): @@ -57,7 +65,9 @@ def test_ApprovalsApi_get_workspace_timesheets_handler(api): Get timesheets # noqa: E501 """ - pass + response = api.get_workspace_timesheets_handler() + + assert response def test_ApprovalsApi_post_timesheet_setups(api): @@ -65,7 +75,9 @@ def test_ApprovalsApi_post_timesheet_setups(api): Create a timesheet setup # noqa: E501 """ - pass + response = api.post_timesheet_setups() + + assert response def test_ApprovalsApi_put_timesheet_setups(api): @@ -73,7 +85,9 @@ def test_ApprovalsApi_put_timesheet_setups(api): Update a timesheet setup # noqa: E501 """ - pass + response = api.put_timesheet_setups() + + assert response def test_ApprovalsApi_put_workspace_timesheets_handler(api): @@ -81,4 +95,6 @@ def test_ApprovalsApi_put_workspace_timesheets_handler(api): Update timesheets # noqa: E501 """ - pass + response = api.put_workspace_timesheets_handler() + + assert response diff --git a/toggl_py/tests/api/test_auth_api.py b/toggl_py/tests/api/test_auth_api.py index 9703df2..c1d2f3c 100644 --- a/toggl_py/tests/api/test_auth_api.py +++ b/toggl_py/tests/api/test_auth_api.py @@ -25,7 +25,9 @@ def test_AuthApi_desktop_login_get(api): Get desktop login token # noqa: E501 """ - pass + response = api.desktop_login_get() + + assert response def test_AuthApi_desktop_login_tokens_post(api): @@ -33,4 +35,6 @@ def test_AuthApi_desktop_login_tokens_post(api): Post desktop login token # noqa: E501 """ - pass + response = api.desktop_login_tokens_post() + + assert response diff --git a/toggl_py/tests/api/test_authentication_api.py b/toggl_py/tests/api/test_authentication_api.py index 7f7fbfe..d5e792a 100644 --- a/toggl_py/tests/api/test_authentication_api.py +++ b/toggl_py/tests/api/test_authentication_api.py @@ -25,7 +25,9 @@ def test_AuthenticationApi_delete_workspace_sso(api): Erase a workspace SSO configuration # noqa: E501 """ - pass + response = api.delete_workspace_sso() + + assert response def test_AuthenticationApi_get_saml2_login_url(api): @@ -33,7 +35,9 @@ def test_AuthenticationApi_get_saml2_login_url(api): SAML2 Identity Provider URL # noqa: E501 """ - pass + response = api.get_saml2_login_url() + + assert response def test_AuthenticationApi_get_workspace_sso(api): @@ -41,7 +45,9 @@ def test_AuthenticationApi_get_workspace_sso(api): Workspace SSO configuration # noqa: E501 """ - pass + response = api.get_workspace_sso() + + assert response def test_AuthenticationApi_me_sessions_delete(api): @@ -49,7 +55,9 @@ def test_AuthenticationApi_me_sessions_delete(api): Delete session # noqa: E501 """ - pass + response = api.me_sessions_delete() + + assert response def test_AuthenticationApi_me_sessions_post(api): @@ -57,7 +65,9 @@ def test_AuthenticationApi_me_sessions_post(api): Create session # noqa: E501 """ - pass + response = api.me_sessions_post() + + assert response def test_AuthenticationApi_patch_workspace_sso(api): @@ -65,7 +75,9 @@ def test_AuthenticationApi_patch_workspace_sso(api): Enable/disable the Workspace SSO configuration # noqa: E501 """ - pass + response = api.patch_workspace_sso() + + assert response def test_AuthenticationApi_post_enable_sso(api): @@ -73,7 +85,9 @@ def test_AuthenticationApi_post_enable_sso(api): Confirm SSO enabling for user account # noqa: E501 """ - pass + response = api.post_enable_sso() + + assert response def test_AuthenticationApi_post_reset_token(api): @@ -81,7 +95,9 @@ def test_AuthenticationApi_post_reset_token(api): ResetToken # noqa: E501 """ - pass + response = api.post_reset_token() + + assert response def test_AuthenticationApi_post_saml2_callback(api): @@ -89,7 +105,9 @@ def test_AuthenticationApi_post_saml2_callback(api): SAML2 Identity Provider Callback # noqa: E501 """ - pass + response = api.post_saml2_callback() + + assert response def test_AuthenticationApi_post_signup(api): @@ -97,7 +115,9 @@ def test_AuthenticationApi_post_signup(api): Signup # noqa: E501 """ - pass + response = api.post_signup() + + assert response def test_AuthenticationApi_post_workspace_sso(api): @@ -105,4 +125,6 @@ def test_AuthenticationApi_post_workspace_sso(api): Workspace SSO configuration # noqa: E501 """ - pass + response = api.post_workspace_sso() + + assert response diff --git a/toggl_py/tests/api/test_avatars_api.py b/toggl_py/tests/api/test_avatars_api.py index 10189bd..5f65395 100644 --- a/toggl_py/tests/api/test_avatars_api.py +++ b/toggl_py/tests/api/test_avatars_api.py @@ -25,7 +25,9 @@ def test_AvatarsApi_delete_avatars(api): Avatars # noqa: E501 """ - pass + response = api.delete_avatars() + + assert response def test_AvatarsApi_post_avatars(api): @@ -33,7 +35,9 @@ def test_AvatarsApi_post_avatars(api): Avatars # noqa: E501 """ - pass + response = api.post_avatars() + + assert response def test_AvatarsApi_post_use_gravatar(api): @@ -41,4 +45,6 @@ def test_AvatarsApi_post_use_gravatar(api): UseGravatar # noqa: E501 """ - pass + response = api.post_use_gravatar() + + assert response diff --git a/toggl_py/tests/api/test_calendar_api.py b/toggl_py/tests/api/test_calendar_api.py index 45111bd..8044672 100644 --- a/toggl_py/tests/api/test_calendar_api.py +++ b/toggl_py/tests/api/test_calendar_api.py @@ -25,7 +25,9 @@ def test_CalendarApi_integrations_calendar_calendars_selected_get(api): Get all selected calendars for a given user. # noqa: E501 """ - pass + response = api.integrations_calendar_calendars_selected_get() + + assert response def test_CalendarApi_integrations_calendar_callback_provider_get(api): @@ -33,7 +35,9 @@ def test_CalendarApi_integrations_calendar_callback_provider_get(api): Callback for provider OAuth setup. # noqa: E501 """ - pass + response = api.integrations_calendar_callback_provider_get() + + assert response def test_CalendarApi_integrations_calendar_events_details_suggestion_post(api): @@ -41,7 +45,9 @@ def test_CalendarApi_integrations_calendar_events_details_suggestion_post(api): Get details suggestion for given events. # noqa: E501 """ - pass + response = api.integrations_calendar_events_details_suggestion_post() + + assert response def test_CalendarApi_integrations_calendar_events_event_id_details_suggestion_get(api): @@ -49,7 +55,9 @@ def test_CalendarApi_integrations_calendar_events_event_id_details_suggestion_ge Get details suggestion for a given event. # noqa: E501 """ - pass + response = api.integrations_calendar_events_event_id_details_suggestion_get() + + assert response def test_CalendarApi_integrations_calendar_events_get(api): @@ -57,7 +65,9 @@ def test_CalendarApi_integrations_calendar_events_get(api): Get all events for the caller user. # noqa: E501 """ - pass + response = api.integrations_calendar_events_get() + + assert response def test_CalendarApi_integrations_calendar_events_update_post(api): @@ -65,7 +75,9 @@ def test_CalendarApi_integrations_calendar_events_update_post(api): Update all events from selected calendars for a user. # noqa: E501 """ - pass + response = api.integrations_calendar_events_update_post() + + assert response def test_CalendarApi_integrations_calendar_get(api): @@ -73,7 +85,9 @@ def test_CalendarApi_integrations_calendar_get(api): Get all integrations a user has. # noqa: E501 """ - pass + response = api.integrations_calendar_get() + + assert response def test_CalendarApi_integrations_calendar_integration_id_calendars_calendar_id_patch(api): @@ -81,7 +95,9 @@ def test_CalendarApi_integrations_calendar_integration_id_calendars_calendar_id_ Sets whether a calendar is or not selected by the user. # noqa: E501 """ - pass + response = api.integrations_calendar_integration_id_calendars_calendar_id_patch() + + assert response def test_CalendarApi_integrations_calendar_integration_id_calendars_get(api): @@ -89,7 +105,9 @@ def test_CalendarApi_integrations_calendar_integration_id_calendars_get(api): Get all calendars for a given integration. # noqa: E501 """ - pass + response = api.integrations_calendar_integration_id_calendars_get() + + assert response def test_CalendarApi_integrations_calendar_integration_id_calendars_id_calendar_events_get(api): @@ -97,7 +115,9 @@ def test_CalendarApi_integrations_calendar_integration_id_calendars_id_calendar_ (DEPRECATED) Get all events for a given calendar in a given integration. # noqa: E501 """ - pass + response = api.integrations_calendar_integration_id_calendars_id_calendar_events_get() + + assert response def test_CalendarApi_integrations_calendar_integration_id_calendars_update_post(api): @@ -105,7 +125,9 @@ def test_CalendarApi_integrations_calendar_integration_id_calendars_update_post( Updates calendar data according to provider API. # noqa: E501 """ - pass + response = api.integrations_calendar_integration_id_calendars_update_post() + + assert response def test_CalendarApi_integrations_calendar_integration_id_delete(api): @@ -113,7 +135,9 @@ def test_CalendarApi_integrations_calendar_integration_id_delete(api): Delete a given integration. # noqa: E501 """ - pass + response = api.integrations_calendar_integration_id_delete() + + assert response def test_CalendarApi_integrations_calendar_setup_get(api): @@ -121,4 +145,6 @@ def test_CalendarApi_integrations_calendar_setup_get(api): Get URL for setting up a calendar integration with given provider. # noqa: E501 """ - pass + response = api.integrations_calendar_setup_get() + + assert response diff --git a/toggl_py/tests/api/test_clients_api.py b/toggl_py/tests/api/test_clients_api.py index 0b3b301..70a7012 100644 --- a/toggl_py/tests/api/test_clients_api.py +++ b/toggl_py/tests/api/test_clients_api.py @@ -25,7 +25,9 @@ def test_ClientsApi_archive_client(api): Archives client # noqa: E501 """ - pass + response = api.archive_client() + + assert response def test_ClientsApi_delete_workspace_clients(api): @@ -33,7 +35,9 @@ def test_ClientsApi_delete_workspace_clients(api): Delete client # noqa: E501 """ - pass + response = api.delete_workspace_clients() + + assert response def test_ClientsApi_get_workspace_client(api): @@ -41,7 +45,9 @@ def test_ClientsApi_get_workspace_client(api): Load client from ID # noqa: E501 """ - pass + response = api.get_workspace_client() + + assert response def test_ClientsApi_get_workspace_clients(api): @@ -49,7 +55,9 @@ def test_ClientsApi_get_workspace_clients(api): List clients # noqa: E501 """ - pass + response = api.get_workspace_clients() + + assert response def test_ClientsApi_post_workspace_clients(api): @@ -57,7 +65,9 @@ def test_ClientsApi_post_workspace_clients(api): Create client # noqa: E501 """ - pass + response = api.post_workspace_clients() + + assert response def test_ClientsApi_put_workspace_clients(api): @@ -65,7 +75,9 @@ def test_ClientsApi_put_workspace_clients(api): Change client # noqa: E501 """ - pass + response = api.put_workspace_clients() + + assert response def test_ClientsApi_restore_client(api): @@ -73,4 +85,6 @@ def test_ClientsApi_restore_client(api): Restores client and related projects. # noqa: E501 """ - pass + response = api.restore_client() + + assert response diff --git a/toggl_py/tests/api/test_countries_api.py b/toggl_py/tests/api/test_countries_api.py index b7048be..2670c2f 100644 --- a/toggl_py/tests/api/test_countries_api.py +++ b/toggl_py/tests/api/test_countries_api.py @@ -25,7 +25,9 @@ def test_CountriesApi_get_countries(api): Countries # noqa: E501 """ - pass + response = api.get_countries() + + assert response def test_CountriesApi_get_countries_country_id_subdivisions(api): @@ -33,4 +35,6 @@ def test_CountriesApi_get_countries_country_id_subdivisions(api): CountrySubdivisions # noqa: E501 """ - pass + response = api.get_countries_country_id_subdivisions() + + assert response diff --git a/toggl_py/tests/api/test_dashboard_api.py b/toggl_py/tests/api/test_dashboard_api.py index 464f003..524f2c4 100644 --- a/toggl_py/tests/api/test_dashboard_api.py +++ b/toggl_py/tests/api/test_dashboard_api.py @@ -25,7 +25,9 @@ def test_DashboardApi_get_workspace_all_activities(api): Get last activity for every workspace user # noqa: E501 """ - pass + response = api.get_workspace_all_activities() + + assert response def test_DashboardApi_get_workspace_most_active(api): @@ -33,7 +35,9 @@ def test_DashboardApi_get_workspace_most_active(api): Get most active users # noqa: E501 """ - pass + response = api.get_workspace_most_active() + + assert response def test_DashboardApi_get_workspace_top_activity(api): @@ -41,4 +45,6 @@ def test_DashboardApi_get_workspace_top_activity(api): Get top activities # noqa: E501 """ - pass + response = api.get_workspace_top_activity() + + assert response diff --git a/toggl_py/tests/api/test_default_api.py b/toggl_py/tests/api/test_default_api.py deleted file mode 100644 index ac26395..0000000 --- a/toggl_py/tests/api/test_default_api.py +++ /dev/null @@ -1,60 +0,0 @@ -""" -Public Toggl API. Note: We use BasicAuth in a specific way. By the standard you provide `Authentication` header with `base64(user_name:password)` as a `credential`. In our case it will be `base64(user_name:api_token)`. # noqa: E501 - -This file is auto generated by the swagger code generator program. -Do not edit this file manually. - -OpenAPI spec version: 9 -Generated by: https://github.com/compilerla/toggl-py -""" - -import pytest - -import toggl # noqa: F401 -from toggl.api.default_api import DefaultApi -from toggl.rest import ApiException # noqa: F401 - - -@pytest.fixture -def api(): - return DefaultApi() - - -def test_DefaultApi_reports_api_v3_workspace_workspace_id_comparative_post(api): - """Test case for reports_api_v3_workspace_workspace_id_comparative_post - - Load comparative report # noqa: E501 - """ - pass - - -def test_DefaultApi_reports_api_v3_workspace_workspace_id_data_trends_clients_post(api): - """Test case for reports_api_v3_workspace_workspace_id_data_trends_clients_post - - Load clients' data trends # noqa: E501 - """ - pass - - -def test_DefaultApi_reports_api_v3_workspace_workspace_id_data_trends_projects_post(api): - """Test case for reports_api_v3_workspace_workspace_id_data_trends_projects_post - - Load projects' data trends # noqa: E501 - """ - pass - - -def test_DefaultApi_reports_api_v3_workspace_workspace_id_data_trends_users_post(api): - """Test case for reports_api_v3_workspace_workspace_id_data_trends_users_post - - Load users' data trends # noqa: E501 - """ - pass - - -def test_DefaultApi_reports_api_v3_workspace_workspace_id_profitability_projects_post(api): - """Test case for reports_api_v3_workspace_workspace_id_profitability_projects_post - - Load profitability projects report # noqa: E501 - """ - pass diff --git a/toggl_py/tests/api/test_detailed_reports_api.py b/toggl_py/tests/api/test_detailed_reports_api.py index b5bc443..82f7d92 100644 --- a/toggl_py/tests/api/test_detailed_reports_api.py +++ b/toggl_py/tests/api/test_detailed_reports_api.py @@ -25,7 +25,9 @@ def test_DetailedReportsApi_reports_api_v3_workspace_workspace_id_search_time_en Export detailed report # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_search_time_entries_extension_post() + + assert response def test_DetailedReportsApi_reports_api_v3_workspace_workspace_id_search_time_entries_pdf_post(api): @@ -33,7 +35,9 @@ def test_DetailedReportsApi_reports_api_v3_workspace_workspace_id_search_time_en Export detailed report # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_search_time_entries_pdf_post() + + assert response def test_DetailedReportsApi_reports_api_v3_workspace_workspace_id_search_time_entries_post(api): @@ -41,7 +45,9 @@ def test_DetailedReportsApi_reports_api_v3_workspace_workspace_id_search_time_en Search time entries # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_search_time_entries_post() + + assert response def test_DetailedReportsApi_reports_api_v3_workspace_workspace_id_search_time_entries_totals_post(api): @@ -49,4 +55,6 @@ def test_DetailedReportsApi_reports_api_v3_workspace_workspace_id_search_time_en Load totals detailed report # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_search_time_entries_totals_post() + + assert response diff --git a/toggl_py/tests/api/test_exports_api.py b/toggl_py/tests/api/test_exports_api.py index 75242ef..12071a7 100644 --- a/toggl_py/tests/api/test_exports_api.py +++ b/toggl_py/tests/api/test_exports_api.py @@ -25,7 +25,9 @@ def test_ExportsApi_get_me_export(api): Get a list of objects to be downloaded # noqa: E501 """ - pass + response = api.get_me_export() + + assert response def test_ExportsApi_get_me_export_data_uuid_zip(api): @@ -33,7 +35,9 @@ def test_ExportsApi_get_me_export_data_uuid_zip(api): Get the zip file with download requests # noqa: E501 """ - pass + response = api.get_me_export_data_uuid_zip() + + assert response def test_ExportsApi_get_workspace_exports(api): @@ -41,7 +45,9 @@ def test_ExportsApi_get_workspace_exports(api): Get a list with the workspace download requests # noqa: E501 """ - pass + response = api.get_workspace_exports() + + assert response def test_ExportsApi_get_workspace_exports_data_uuid_zip(api): @@ -49,7 +55,9 @@ def test_ExportsApi_get_workspace_exports_data_uuid_zip(api): Get the zip file with workspace download requests # noqa: E501 """ - pass + response = api.get_workspace_exports_data_uuid_zip() + + assert response def test_ExportsApi_insights_api_v1_workspace_workspace_id_profitability_employees_extension_post(api): @@ -57,7 +65,9 @@ def test_ExportsApi_insights_api_v1_workspace_workspace_id_profitability_employe Export employee profitability insights # noqa: E501 """ - pass + response = api.insights_api_v1_workspace_workspace_id_profitability_employees_extension_post() + + assert response def test_ExportsApi_insights_api_v1_workspace_workspace_id_profitability_projects_extension_post(api): @@ -65,7 +75,9 @@ def test_ExportsApi_insights_api_v1_workspace_workspace_id_profitability_project Export profitability project insights # noqa: E501 """ - pass + response = api.insights_api_v1_workspace_workspace_id_profitability_projects_extension_post() + + assert response def test_ExportsApi_insights_api_v1_workspace_workspace_id_trends_projects_extension_post(api): @@ -73,7 +85,9 @@ def test_ExportsApi_insights_api_v1_workspace_workspace_id_trends_projects_exten Export projects data trends # noqa: E501 """ - pass + response = api.insights_api_v1_workspace_workspace_id_trends_projects_extension_post() + + assert response def test_ExportsApi_post_me_export(api): @@ -81,7 +95,9 @@ def test_ExportsApi_post_me_export(api): Post an object which data to be downloaded # noqa: E501 """ - pass + response = api.post_me_export() + + assert response def test_ExportsApi_post_workspace_exports(api): @@ -89,7 +105,9 @@ def test_ExportsApi_post_workspace_exports(api): Post a list with the workspace to be downloaded # noqa: E501 """ - pass + response = api.post_workspace_exports() + + assert response def test_ExportsApi_reports_api_v3_shared_report_token_csv_post(api): @@ -97,7 +115,9 @@ def test_ExportsApi_reports_api_v3_shared_report_token_csv_post(api): Export CSV for saved report # noqa: E501 """ - pass + response = api.reports_api_v3_shared_report_token_csv_post() + + assert response def test_ExportsApi_reports_api_v3_shared_report_token_pdf_post(api): @@ -105,7 +125,9 @@ def test_ExportsApi_reports_api_v3_shared_report_token_pdf_post(api): Export saved report in pdf format # noqa: E501 """ - pass + response = api.reports_api_v3_shared_report_token_pdf_post() + + assert response def test_ExportsApi_reports_api_v3_shared_report_token_xlsx_post(api): @@ -113,7 +135,9 @@ def test_ExportsApi_reports_api_v3_shared_report_token_xlsx_post(api): Export XSLX saved report # noqa: E501 """ - pass + response = api.reports_api_v3_shared_report_token_xlsx_post() + + assert response def test_ExportsApi_reports_api_v3_workspace_workspace_id_search_time_entries_extension_post(api): @@ -121,7 +145,9 @@ def test_ExportsApi_reports_api_v3_workspace_workspace_id_search_time_entries_ex Export detailed report # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_search_time_entries_extension_post() + + assert response def test_ExportsApi_reports_api_v3_workspace_workspace_id_search_time_entries_pdf_post(api): @@ -129,7 +155,9 @@ def test_ExportsApi_reports_api_v3_workspace_workspace_id_search_time_entries_pd Export detailed report # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_search_time_entries_pdf_post() + + assert response def test_ExportsApi_reports_api_v3_workspace_workspace_id_summary_time_entries_extension_post(api): @@ -137,7 +165,9 @@ def test_ExportsApi_reports_api_v3_workspace_workspace_id_summary_time_entries_e Export summary report # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_summary_time_entries_extension_post() + + assert response def test_ExportsApi_reports_api_v3_workspace_workspace_id_summary_time_entries_pdf_post(api): @@ -145,7 +175,9 @@ def test_ExportsApi_reports_api_v3_workspace_workspace_id_summary_time_entries_p Export summary report # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_summary_time_entries_pdf_post() + + assert response def test_ExportsApi_reports_api_v3_workspace_workspace_id_weekly_time_entries_csv_post(api): @@ -153,7 +185,9 @@ def test_ExportsApi_reports_api_v3_workspace_workspace_id_weekly_time_entries_cs Export weekly report # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_weekly_time_entries_csv_post() + + assert response def test_ExportsApi_reports_api_v3_workspace_workspace_id_weekly_time_entries_pdf_post(api): @@ -161,4 +195,6 @@ def test_ExportsApi_reports_api_v3_workspace_workspace_id_weekly_time_entries_pd Export weekly report # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_weekly_time_entries_pdf_post() + + assert response diff --git a/toggl_py/tests/api/test_favorites_api.py b/toggl_py/tests/api/test_favorites_api.py index a29a29b..d6ae77a 100644 --- a/toggl_py/tests/api/test_favorites_api.py +++ b/toggl_py/tests/api/test_favorites_api.py @@ -25,7 +25,9 @@ def test_FavoritesApi_create_favorite(api): Create a favorite # noqa: E501 """ - pass + response = api.create_favorite() + + assert response def test_FavoritesApi_delete_favorite(api): @@ -33,7 +35,9 @@ def test_FavoritesApi_delete_favorite(api): Deletes a given favorite # noqa: E501 """ - pass + response = api.delete_favorite() + + assert response def test_FavoritesApi_get_favorites(api): @@ -41,7 +45,9 @@ def test_FavoritesApi_get_favorites(api): Get a list of favorites # noqa: E501 """ - pass + response = api.get_favorites() + + assert response def test_FavoritesApi_post_favorites_suggestions(api): @@ -49,7 +55,9 @@ def test_FavoritesApi_post_favorites_suggestions(api): Generates and returns a list of suggested favorites. # noqa: E501 """ - pass + response = api.post_favorites_suggestions() + + assert response def test_FavoritesApi_update_favorite(api): @@ -57,4 +65,6 @@ def test_FavoritesApi_update_favorite(api): Update an array of favorites # noqa: E501 """ - pass + response = api.update_favorite() + + assert response diff --git a/toggl_py/tests/api/test_feedback_api.py b/toggl_py/tests/api/test_feedback_api.py index 5679dd2..d65eb0c 100644 --- a/toggl_py/tests/api/test_feedback_api.py +++ b/toggl_py/tests/api/test_feedback_api.py @@ -25,7 +25,9 @@ def test_FeedbackApi_post_feedback_web(api): FeedbackWeb # noqa: E501 """ - pass + response = api.post_feedback_web() + + assert response def test_FeedbackApi_post_unified_feedback(api): @@ -33,4 +35,6 @@ def test_FeedbackApi_post_unified_feedback(api): Feedback # noqa: E501 """ - pass + response = api.post_unified_feedback() + + assert response diff --git a/toggl_py/tests/api/test_goals_api.py b/toggl_py/tests/api/test_goals_api.py index 4854552..920752c 100644 --- a/toggl_py/tests/api/test_goals_api.py +++ b/toggl_py/tests/api/test_goals_api.py @@ -25,7 +25,9 @@ def test_GoalsApi_goals_cadences_get(api): Get a list of goal cadences # noqa: E501 """ - pass + response = api.goals_cadences_get() + + assert response def test_GoalsApi_goals_get(api): @@ -33,7 +35,9 @@ def test_GoalsApi_goals_get(api): Get a list of goals # noqa: E501 """ - pass + response = api.goals_get() + + assert response def test_GoalsApi_goals_goal_id_delete(api): @@ -41,7 +45,9 @@ def test_GoalsApi_goals_goal_id_delete(api): Delete one goal # noqa: E501 """ - pass + response = api.goals_goal_id_delete() + + assert response def test_GoalsApi_goals_goal_id_get(api): @@ -49,7 +55,9 @@ def test_GoalsApi_goals_goal_id_get(api): Get one goal # noqa: E501 """ - pass + response = api.goals_goal_id_get() + + assert response def test_GoalsApi_goals_goal_id_patch(api): @@ -57,7 +65,9 @@ def test_GoalsApi_goals_goal_id_patch(api): Update a Goal # noqa: E501 """ - pass + response = api.goals_goal_id_patch() + + assert response def test_GoalsApi_goals_goal_id_stats_get(api): @@ -65,7 +75,9 @@ def test_GoalsApi_goals_goal_id_stats_get(api): Get stats for a goal # noqa: E501 """ - pass + response = api.goals_goal_id_stats_get() + + assert response def test_GoalsApi_goals_insight_post(api): @@ -73,7 +85,9 @@ def test_GoalsApi_goals_insight_post(api): Get a insight # noqa: E501 """ - pass + response = api.goals_insight_post() + + assert response def test_GoalsApi_goals_post(api): @@ -81,4 +95,6 @@ def test_GoalsApi_goals_post(api): Create a Goal # noqa: E501 """ - pass + response = api.goals_post() + + assert response diff --git a/toggl_py/tests/api/test_groups_api.py b/toggl_py/tests/api/test_groups_api.py index 4c760b9..6ea8310 100644 --- a/toggl_py/tests/api/test_groups_api.py +++ b/toggl_py/tests/api/test_groups_api.py @@ -25,7 +25,9 @@ def test_GroupsApi_delete_organization_group(api): Deletes group # noqa: E501 """ - pass + response = api.delete_organization_group() + + assert response def test_GroupsApi_delete_project_group(api): @@ -33,7 +35,9 @@ def test_GroupsApi_delete_project_group(api): Remove project group. # noqa: E501 """ - pass + response = api.delete_project_group() + + assert response def test_GroupsApi_delete_workspace_group(api): @@ -41,7 +45,9 @@ def test_GroupsApi_delete_workspace_group(api): Delete group # noqa: E501 """ - pass + response = api.delete_workspace_group() + + assert response def test_GroupsApi_get_organization_groups(api): @@ -49,7 +55,9 @@ def test_GroupsApi_get_organization_groups(api): List of groups in organization with user and workspace assignments # noqa: E501 """ - pass + response = api.get_organization_groups() + + assert response def test_GroupsApi_get_organization_workspaces_groups(api): @@ -57,7 +65,9 @@ def test_GroupsApi_get_organization_workspaces_groups(api): List of groups in a workspace within an organization with user assignments. # noqa: E501 """ - pass + response = api.get_organization_workspaces_groups() + + assert response def test_GroupsApi_get_project_groups(api): @@ -65,7 +75,9 @@ def test_GroupsApi_get_project_groups(api): Get workspace project groups. # noqa: E501 """ - pass + response = api.get_project_groups() + + assert response def test_GroupsApi_get_workspace_groups(api): @@ -73,7 +85,9 @@ def test_GroupsApi_get_workspace_groups(api): Get workspace groups # noqa: E501 """ - pass + response = api.get_workspace_groups() + + assert response def test_GroupsApi_patch_organization_group(api): @@ -81,7 +95,9 @@ def test_GroupsApi_patch_organization_group(api): Patch group # noqa: E501 """ - pass + response = api.patch_organization_group() + + assert response def test_GroupsApi_post_organization_group(api): @@ -89,7 +105,9 @@ def test_GroupsApi_post_organization_group(api): Create group # noqa: E501 """ - pass + response = api.post_organization_group() + + assert response def test_GroupsApi_post_project_group(api): @@ -97,7 +115,9 @@ def test_GroupsApi_post_project_group(api): Adds group to project. # noqa: E501 """ - pass + response = api.post_project_group() + + assert response def test_GroupsApi_post_workspace_group(api): @@ -105,7 +125,9 @@ def test_GroupsApi_post_workspace_group(api): Create group # noqa: E501 """ - pass + response = api.post_workspace_group() + + assert response def test_GroupsApi_put_organization_group(api): @@ -113,7 +135,9 @@ def test_GroupsApi_put_organization_group(api): Edit group # noqa: E501 """ - pass + response = api.put_organization_group() + + assert response def test_GroupsApi_put_organization_workspaces_assignments(api): @@ -121,7 +145,9 @@ def test_GroupsApi_put_organization_workspaces_assignments(api): Change assignments of users within a workspace. # noqa: E501 """ - pass + response = api.put_organization_workspaces_assignments() + + assert response def test_GroupsApi_put_workspace_group(api): @@ -129,4 +155,6 @@ def test_GroupsApi_put_workspace_group(api): Update group # noqa: E501 """ - pass + response = api.put_workspace_group() + + assert response diff --git a/toggl_py/tests/api/test_ical_api.py b/toggl_py/tests/api/test_ical_api.py index 50b0026..3e21ce6 100644 --- a/toggl_py/tests/api/test_ical_api.py +++ b/toggl_py/tests/api/test_ical_api.py @@ -25,7 +25,9 @@ def test_IcalApi_get_ical(api): Ical file # noqa: E501 """ - pass + response = api.get_ical() + + assert response def test_IcalApi_post_workspace_ical_reset(api): @@ -33,7 +35,9 @@ def test_IcalApi_post_workspace_ical_reset(api): Reset iCal token # noqa: E501 """ - pass + response = api.post_workspace_ical_reset() + + assert response def test_IcalApi_post_workspace_ical_toggle(api): @@ -41,4 +45,6 @@ def test_IcalApi_post_workspace_ical_toggle(api): Toggle the iCal token # noqa: E501 """ - pass + response = api.post_workspace_ical_toggle() + + assert response diff --git a/toggl_py/tests/api/test_insights_api.py b/toggl_py/tests/api/test_insights_api.py index ca69d50..5dcc9bc 100644 --- a/toggl_py/tests/api/test_insights_api.py +++ b/toggl_py/tests/api/test_insights_api.py @@ -25,7 +25,9 @@ def test_InsightsApi_insights_api_v1_workspace_workspace_id_data_trends_projects Load projects' data trends # noqa: E501 """ - pass + response = api.insights_api_v1_workspace_workspace_id_data_trends_projects_post() + + assert response def test_InsightsApi_insights_api_v1_workspace_workspace_id_profitability_employees_extension_post(api): @@ -33,7 +35,9 @@ def test_InsightsApi_insights_api_v1_workspace_workspace_id_profitability_employ Export employee profitability insights # noqa: E501 """ - pass + response = api.insights_api_v1_workspace_workspace_id_profitability_employees_extension_post() + + assert response def test_InsightsApi_insights_api_v1_workspace_workspace_id_profitability_projects_extension_post(api): @@ -41,7 +45,9 @@ def test_InsightsApi_insights_api_v1_workspace_workspace_id_profitability_projec Export profitability project insights # noqa: E501 """ - pass + response = api.insights_api_v1_workspace_workspace_id_profitability_projects_extension_post() + + assert response def test_InsightsApi_insights_api_v1_workspace_workspace_id_trends_projects_extension_post(api): @@ -49,4 +55,6 @@ def test_InsightsApi_insights_api_v1_workspace_workspace_id_trends_projects_exte Export projects data trends # noqa: E501 """ - pass + response = api.insights_api_v1_workspace_workspace_id_trends_projects_extension_post() + + assert response diff --git a/toggl_py/tests/api/test_invitations_api.py b/toggl_py/tests/api/test_invitations_api.py index 9d55eae..d815cc0 100644 --- a/toggl_py/tests/api/test_invitations_api.py +++ b/toggl_py/tests/api/test_invitations_api.py @@ -25,7 +25,9 @@ def test_InvitationsApi_get_invitations(api): Get an invitation # noqa: E501 """ - pass + response = api.get_invitations() + + assert response def test_InvitationsApi_post_organization_accept_invitation(api): @@ -33,7 +35,9 @@ def test_InvitationsApi_post_organization_accept_invitation(api): Accepts invitation # noqa: E501 """ - pass + response = api.post_organization_accept_invitation() + + assert response def test_InvitationsApi_post_organization_invitation(api): @@ -41,7 +45,9 @@ def test_InvitationsApi_post_organization_invitation(api): Creates a new invitation for the user # noqa: E501 """ - pass + response = api.post_organization_invitation() + + assert response def test_InvitationsApi_post_reject_invitation(api): @@ -49,7 +55,9 @@ def test_InvitationsApi_post_reject_invitation(api): Rejects invitation # noqa: E501 """ - pass + response = api.post_reject_invitation() + + assert response def test_InvitationsApi_put_invitation(api): @@ -57,4 +65,6 @@ def test_InvitationsApi_put_invitation(api): Resends user their invitation # noqa: E501 """ - pass + response = api.put_invitation() + + assert response diff --git a/toggl_py/tests/api/test_keys_api.py b/toggl_py/tests/api/test_keys_api.py index a661dce..86d33de 100644 --- a/toggl_py/tests/api/test_keys_api.py +++ b/toggl_py/tests/api/test_keys_api.py @@ -25,4 +25,6 @@ def test_KeysApi_get_keys(api): get keys # noqa: E501 """ - pass + response = api.get_keys() + + assert response diff --git a/toggl_py/tests/api/test_me_api.py b/toggl_py/tests/api/test_me_api.py index 65c1bef..5a3a050 100644 --- a/toggl_py/tests/api/test_me_api.py +++ b/toggl_py/tests/api/test_me_api.py @@ -25,7 +25,9 @@ def test_MeApi_delete_push_services(api): PushServices # noqa: E501 """ - pass + response = api.delete_push_services() + + assert response def test_MeApi_get_clients(api): @@ -33,7 +35,9 @@ def test_MeApi_get_clients(api): Clients # noqa: E501 """ - pass + response = api.get_clients() + + assert response def test_MeApi_get_lost_password(api): @@ -41,7 +45,9 @@ def test_MeApi_get_lost_password(api): LostPassword # noqa: E501 """ - pass + response = api.get_lost_password() + + assert response def test_MeApi_get_me(api): @@ -49,7 +55,9 @@ def test_MeApi_get_me(api): Me # noqa: E501 """ - pass + response = api.get_me() + + assert response def test_MeApi_get_me_features(api): @@ -57,7 +65,9 @@ def test_MeApi_get_me_features(api): Features # noqa: E501 """ - pass + response = api.get_me_features() + + assert response def test_MeApi_get_me_flags(api): @@ -65,7 +75,9 @@ def test_MeApi_get_me_flags(api): Flags # noqa: E501 """ - pass + response = api.get_me_flags() + + assert response def test_MeApi_get_me_location(api): @@ -73,7 +85,9 @@ def test_MeApi_get_me_location(api): User's last known location # noqa: E501 """ - pass + response = api.get_me_location() + + assert response def test_MeApi_get_me_notifications(api): @@ -81,7 +95,9 @@ def test_MeApi_get_me_notifications(api): Notifications # noqa: E501 """ - pass + response = api.get_me_notifications() + + assert response def test_MeApi_get_me_projects(api): @@ -89,7 +105,9 @@ def test_MeApi_get_me_projects(api): Projects # noqa: E501 """ - pass + response = api.get_me_projects() + + assert response def test_MeApi_get_me_projects_paginated(api): @@ -97,7 +115,9 @@ def test_MeApi_get_me_projects_paginated(api): ProjectsPaginated # noqa: E501 """ - pass + response = api.get_me_projects_paginated() + + assert response def test_MeApi_get_me_timesheets(api): @@ -105,7 +125,9 @@ def test_MeApi_get_me_timesheets(api): User's Timesheets # noqa: E501 """ - pass + response = api.get_me_timesheets() + + assert response def test_MeApi_get_me_track_reminders(api): @@ -113,7 +135,9 @@ def test_MeApi_get_me_track_reminders(api): TrackReminders # noqa: E501 """ - pass + response = api.get_me_track_reminders() + + assert response def test_MeApi_get_organizations(api): @@ -121,7 +145,9 @@ def test_MeApi_get_organizations(api): Organizations that a user is part of # noqa: E501 """ - pass + response = api.get_organizations() + + assert response def test_MeApi_get_push_services(api): @@ -129,7 +155,9 @@ def test_MeApi_get_push_services(api): PushServices # noqa: E501 """ - pass + response = api.get_push_services() + + assert response def test_MeApi_get_tags(api): @@ -137,7 +165,9 @@ def test_MeApi_get_tags(api): Tags # noqa: E501 """ - pass + response = api.get_tags() + + assert response def test_MeApi_get_tasks(api): @@ -145,7 +175,9 @@ def test_MeApi_get_tasks(api): Tasks # noqa: E501 """ - pass + response = api.get_tasks() + + assert response def test_MeApi_get_web_timer(api): @@ -153,7 +185,9 @@ def test_MeApi_get_web_timer(api): WebTimer # noqa: E501 """ - pass + response = api.get_web_timer() + + assert response def test_MeApi_get_workspaces(api): @@ -161,7 +195,9 @@ def test_MeApi_get_workspaces(api): Workspaces # noqa: E501 """ - pass + response = api.get_workspaces() + + assert response def test_MeApi_me_logged_get(api): @@ -169,7 +205,9 @@ def test_MeApi_me_logged_get(api): Logged # noqa: E501 """ - pass + response = api.me_logged_get() + + assert response def test_MeApi_post_close_account(api): @@ -177,7 +215,9 @@ def test_MeApi_post_close_account(api): CloseAccount # noqa: E501 """ - pass + response = api.post_close_account() + + assert response def test_MeApi_post_lost_password(api): @@ -185,7 +225,9 @@ def test_MeApi_post_lost_password(api): LostPassword # noqa: E501 """ - pass + response = api.post_lost_password() + + assert response def test_MeApi_post_lost_password_confirm(api): @@ -193,7 +235,9 @@ def test_MeApi_post_lost_password_confirm(api): LostPassword conformation # noqa: E501 """ - pass + response = api.post_lost_password_confirm() + + assert response def test_MeApi_post_me_accept_tos(api): @@ -201,7 +245,9 @@ def test_MeApi_post_me_accept_tos(api): AcceptTOS # noqa: E501 """ - pass + response = api.post_me_accept_tos() + + assert response def test_MeApi_post_me_disable_product_emails(api): @@ -209,7 +255,9 @@ def test_MeApi_post_me_disable_product_emails(api): Disable product emails # noqa: E501 """ - pass + response = api.post_me_disable_product_emails() + + assert response def test_MeApi_post_me_disable_weekly_report(api): @@ -217,7 +265,9 @@ def test_MeApi_post_me_disable_weekly_report(api): Disable weekly report # noqa: E501 """ - pass + response = api.post_me_disable_weekly_report() + + assert response def test_MeApi_post_me_flags(api): @@ -225,7 +275,9 @@ def test_MeApi_post_me_flags(api): Flags # noqa: E501 """ - pass + response = api.post_me_flags() + + assert response def test_MeApi_post_push_services(api): @@ -233,7 +285,9 @@ def test_MeApi_post_push_services(api): PushServices # noqa: E501 """ - pass + response = api.post_push_services() + + assert response def test_MeApi_put_me(api): @@ -241,7 +295,9 @@ def test_MeApi_put_me(api): Me # noqa: E501 """ - pass + response = api.put_me() + + assert response def test_MeApi_put_notifications(api): @@ -249,4 +305,6 @@ def test_MeApi_put_notifications(api): Notifications # noqa: E501 """ - pass + response = api.put_notifications() + + assert response diff --git a/toggl_py/tests/api/test_mobile_api.py b/toggl_py/tests/api/test_mobile_api.py index f0b25f5..42f8607 100644 --- a/toggl_py/tests/api/test_mobile_api.py +++ b/toggl_py/tests/api/test_mobile_api.py @@ -25,4 +25,6 @@ def test_MobileApi_post_mobile_feedback(api): MobileFeedback # noqa: E501 """ - pass + response = api.post_mobile_feedback() + + assert response diff --git a/toggl_py/tests/api/test_organizations_api.py b/toggl_py/tests/api/test_organizations_api.py index 6b348dc..4de080b 100644 --- a/toggl_py/tests/api/test_organizations_api.py +++ b/toggl_py/tests/api/test_organizations_api.py @@ -25,7 +25,9 @@ def test_OrganizationsApi_delete_organization_group(api): Deletes group # noqa: E501 """ - pass + response = api.delete_organization_group() + + assert response def test_OrganizationsApi_delete_organization_users_leave(api): @@ -33,7 +35,9 @@ def test_OrganizationsApi_delete_organization_users_leave(api): Leaves organization # noqa: E501 """ - pass + response = api.delete_organization_users_leave() + + assert response def test_OrganizationsApi_get_organization(api): @@ -41,7 +45,9 @@ def test_OrganizationsApi_get_organization(api): Organization data # noqa: E501 """ - pass + response = api.get_organization() + + assert response def test_OrganizationsApi_get_organization_groups(api): @@ -49,7 +55,9 @@ def test_OrganizationsApi_get_organization_groups(api): List of groups in organization with user and workspace assignments # noqa: E501 """ - pass + response = api.get_organization_groups() + + assert response def test_OrganizationsApi_get_organization_owner(api): @@ -57,7 +65,9 @@ def test_OrganizationsApi_get_organization_owner(api): Get owner of the organization # noqa: E501 """ - pass + response = api.get_organization_owner() + + assert response def test_OrganizationsApi_get_organization_segmentation(api): @@ -65,7 +75,9 @@ def test_OrganizationsApi_get_organization_segmentation(api): Organization segmentation data # noqa: E501 """ - pass + response = api.get_organization_segmentation() + + assert response def test_OrganizationsApi_get_organization_users(api): @@ -73,7 +85,9 @@ def test_OrganizationsApi_get_organization_users(api): List of users in organization # noqa: E501 """ - pass + response = api.get_organization_users() + + assert response def test_OrganizationsApi_get_organization_users_detailed(api): @@ -81,7 +95,9 @@ def test_OrganizationsApi_get_organization_users_detailed(api): List of users in organization with details # noqa: E501 """ - pass + response = api.get_organization_users_detailed() + + assert response def test_OrganizationsApi_get_organization_workspaces_groups(api): @@ -89,7 +105,9 @@ def test_OrganizationsApi_get_organization_workspaces_groups(api): List of groups in a workspace within an organization with user assignments. # noqa: E501 """ - pass + response = api.get_organization_workspaces_groups() + + assert response def test_OrganizationsApi_get_organization_workspaces_statistics(api): @@ -97,7 +115,9 @@ def test_OrganizationsApi_get_organization_workspaces_statistics(api): Statistics for all workspaces in the organization # noqa: E501 """ - pass + response = api.get_organization_workspaces_statistics() + + assert response def test_OrganizationsApi_get_organizations_payments_records(api): @@ -105,7 +125,9 @@ def test_OrganizationsApi_get_organizations_payments_records(api): OrganizationsPaymentRecords # noqa: E501 """ - pass + response = api.get_organizations_payments_records() + + assert response def test_OrganizationsApi_get_organizations_plans(api): @@ -113,7 +135,9 @@ def test_OrganizationsApi_get_organizations_plans(api): OrganizationsPlans # noqa: E501 """ - pass + response = api.get_organizations_plans() + + assert response def test_OrganizationsApi_get_organizations_plans_0(api): @@ -121,7 +145,9 @@ def test_OrganizationsApi_get_organizations_plans_0(api): OrganizationsPlan # noqa: E501 """ - pass + response = api.get_organizations_plans_0() + + assert response def test_OrganizationsApi_patch_organization_group(api): @@ -129,7 +155,9 @@ def test_OrganizationsApi_patch_organization_group(api): Patch group # noqa: E501 """ - pass + response = api.patch_organization_group() + + assert response def test_OrganizationsApi_patch_organization_users(api): @@ -137,7 +165,9 @@ def test_OrganizationsApi_patch_organization_users(api): Apply changes in bulk to users in an organization # noqa: E501 """ - pass + response = api.patch_organization_users() + + assert response def test_OrganizationsApi_post_organization(api): @@ -145,7 +175,9 @@ def test_OrganizationsApi_post_organization(api): Creates a new organization # noqa: E501 """ - pass + response = api.post_organization() + + assert response def test_OrganizationsApi_post_organization_accept_invitation(api): @@ -153,7 +185,9 @@ def test_OrganizationsApi_post_organization_accept_invitation(api): Accepts invitation # noqa: E501 """ - pass + response = api.post_organization_accept_invitation() + + assert response def test_OrganizationsApi_post_organization_group(api): @@ -161,7 +195,9 @@ def test_OrganizationsApi_post_organization_group(api): Create group # noqa: E501 """ - pass + response = api.post_organization_group() + + assert response def test_OrganizationsApi_post_organization_invitation(api): @@ -169,7 +205,9 @@ def test_OrganizationsApi_post_organization_invitation(api): Creates a new invitation for the user # noqa: E501 """ - pass + response = api.post_organization_invitation() + + assert response def test_OrganizationsApi_post_organization_workspaces(api): @@ -177,7 +215,9 @@ def test_OrganizationsApi_post_organization_workspaces(api): Create a new workspace. # noqa: E501 """ - pass + response = api.post_organization_workspaces() + + assert response def test_OrganizationsApi_put_organization(api): @@ -185,7 +225,9 @@ def test_OrganizationsApi_put_organization(api): Updates an existing organization # noqa: E501 """ - pass + response = api.put_organization() + + assert response def test_OrganizationsApi_put_organization_group(api): @@ -193,7 +235,9 @@ def test_OrganizationsApi_put_organization_group(api): Edit group # noqa: E501 """ - pass + response = api.put_organization_group() + + assert response def test_OrganizationsApi_put_organization_segmentation(api): @@ -201,7 +245,9 @@ def test_OrganizationsApi_put_organization_segmentation(api): Organization segmentation data # noqa: E501 """ - pass + response = api.put_organization_segmentation() + + assert response def test_OrganizationsApi_put_organization_users(api): @@ -209,7 +255,9 @@ def test_OrganizationsApi_put_organization_users(api): Changes a single organization-user # noqa: E501 """ - pass + response = api.put_organization_users() + + assert response def test_OrganizationsApi_put_organization_workspaces_assignments(api): @@ -217,4 +265,6 @@ def test_OrganizationsApi_put_organization_workspaces_assignments(api): Change assignments of users within a workspace. # noqa: E501 """ - pass + response = api.put_organization_workspaces_assignments() + + assert response diff --git a/toggl_py/tests/api/test_organizations_owner_api.py b/toggl_py/tests/api/test_organizations_owner_api.py index 0968bdf..34b7e1e 100644 --- a/toggl_py/tests/api/test_organizations_owner_api.py +++ b/toggl_py/tests/api/test_organizations_owner_api.py @@ -25,7 +25,9 @@ def test_OrganizationsOwnerApi_get_ownership_transfer(api): Returns single organization transfer in the organization # noqa: E501 """ - pass + response = api.get_ownership_transfer() + + assert response def test_OrganizationsOwnerApi_get_ownership_transfers(api): @@ -33,7 +35,9 @@ def test_OrganizationsOwnerApi_get_ownership_transfers(api): Returns list of organization transfers made in the organization # noqa: E501 """ - pass + response = api.get_ownership_transfers() + + assert response def test_OrganizationsOwnerApi_post_ownership_transfer(api): @@ -41,7 +45,9 @@ def test_OrganizationsOwnerApi_post_ownership_transfer(api): Creates new ownership transfer process # noqa: E501 """ - pass + response = api.post_ownership_transfer() + + assert response def test_OrganizationsOwnerApi_post_ownership_transfer_actions(api): @@ -49,4 +55,6 @@ def test_OrganizationsOwnerApi_post_ownership_transfer_actions(api): Updates transfer process and emails stakeholders # noqa: E501 """ - pass + response = api.post_ownership_transfer_actions() + + assert response diff --git a/toggl_py/tests/api/test_organizations_subscription_api.py b/toggl_py/tests/api/test_organizations_subscription_api.py index 123a667..6f46219 100644 --- a/toggl_py/tests/api/test_organizations_subscription_api.py +++ b/toggl_py/tests/api/test_organizations_subscription_api.py @@ -25,4 +25,6 @@ def test_OrganizationsSubscriptionApi_get_organization_purchase_order_pdf(api): PurchaseOrderPdf # noqa: E501 """ - pass + response = api.get_organization_purchase_order_pdf() + + assert response diff --git a/toggl_py/tests/api/test_organizationscustomer_api.py b/toggl_py/tests/api/test_organizationscustomer_api.py index 986a517..c4c4e98 100644 --- a/toggl_py/tests/api/test_organizationscustomer_api.py +++ b/toggl_py/tests/api/test_organizationscustomer_api.py @@ -25,7 +25,9 @@ def test_OrganizationscustomerApi_get_organization_customer(api): Customer # noqa: E501 """ - pass + response = api.get_organization_customer() + + assert response def test_OrganizationscustomerApi_get_unified_customer(api): @@ -33,7 +35,9 @@ def test_OrganizationscustomerApi_get_unified_customer(api): Retrieve unified customer # noqa: E501 """ - pass + response = api.get_unified_customer() + + assert response def test_OrganizationscustomerApi_post_organization_customer(api): @@ -41,7 +45,9 @@ def test_OrganizationscustomerApi_post_organization_customer(api): ContactDetails # noqa: E501 """ - pass + response = api.post_organization_customer() + + assert response def test_OrganizationscustomerApi_post_unified_customer(api): @@ -49,7 +55,9 @@ def test_OrganizationscustomerApi_post_unified_customer(api): Create unified customer # noqa: E501 """ - pass + response = api.post_unified_customer() + + assert response def test_OrganizationscustomerApi_put_unified_customer(api): @@ -57,4 +65,6 @@ def test_OrganizationscustomerApi_put_unified_customer(api): Update unified customer # noqa: E501 """ - pass + response = api.put_unified_customer() + + assert response diff --git a/toggl_py/tests/api/test_organizationssubscription_api.py b/toggl_py/tests/api/test_organizationssubscription_api.py index c665c9e..8e338c0 100644 --- a/toggl_py/tests/api/test_organizationssubscription_api.py +++ b/toggl_py/tests/api/test_organizationssubscription_api.py @@ -25,4 +25,6 @@ def test_OrganizationssubscriptionApi_post_organization_subscription_calculate(a SubscriptionCalculation # noqa: E501 """ - pass + response = api.post_organization_subscription_calculate() + + assert response diff --git a/toggl_py/tests/api/test_organizationssubscriptionbilling_api.py b/toggl_py/tests/api/test_organizationssubscriptionbilling_api.py index f8c5db4..38c651d 100644 --- a/toggl_py/tests/api/test_organizationssubscriptionbilling_api.py +++ b/toggl_py/tests/api/test_organizationssubscriptionbilling_api.py @@ -25,4 +25,6 @@ def test_OrganizationssubscriptionbillingApi_create_billing_portal_session(api): Create a billing portal session in the unified subscription system # noqa: E501 """ - pass + response = api.create_billing_portal_session() + + assert response diff --git a/toggl_py/tests/api/test_organizationssubscriptioncheckout_api.py b/toggl_py/tests/api/test_organizationssubscriptioncheckout_api.py index 8265f0e..5467c12 100644 --- a/toggl_py/tests/api/test_organizationssubscriptioncheckout_api.py +++ b/toggl_py/tests/api/test_organizationssubscriptioncheckout_api.py @@ -25,4 +25,6 @@ def test_OrganizationssubscriptioncheckoutApi_create_subscription_checkout_sessi Create a subscription checkout session in the unified subscription system # noqa: E501 """ - pass + response = api.create_subscription_checkout_session() + + assert response diff --git a/toggl_py/tests/api/test_organizationssubscriptionpromocode_api.py b/toggl_py/tests/api/test_organizationssubscriptionpromocode_api.py index ee19949..de3014f 100644 --- a/toggl_py/tests/api/test_organizationssubscriptionpromocode_api.py +++ b/toggl_py/tests/api/test_organizationssubscriptionpromocode_api.py @@ -25,7 +25,9 @@ def test_OrganizationssubscriptionpromocodeApi_delete_promotion_code(api): Removes any discount (promotion code) applied to the organization's customer # noqa: E501 """ - pass + response = api.delete_promotion_code() + + assert response def test_OrganizationssubscriptionpromocodeApi_post_promotion_code(api): @@ -33,4 +35,6 @@ def test_OrganizationssubscriptionpromocodeApi_post_promotion_code(api): Applies the given promotion code to organization's customer # noqa: E501 """ - pass + response = api.post_promotion_code() + + assert response diff --git a/toggl_py/tests/api/test_organizationssubscriptionsetup_intent_api.py b/toggl_py/tests/api/test_organizationssubscriptionsetup_intent_api.py index 61e42b4..82e6a21 100644 --- a/toggl_py/tests/api/test_organizationssubscriptionsetup_intent_api.py +++ b/toggl_py/tests/api/test_organizationssubscriptionsetup_intent_api.py @@ -25,4 +25,6 @@ def test_OrganizationssubscriptionsetupIntentApi_create_setup_intent(api): Create a setup intent for collecting customer's payment method # noqa: E501 """ - pass + response = api.create_setup_intent() + + assert response diff --git a/toggl_py/tests/api/test_preferences_api.py b/toggl_py/tests/api/test_preferences_api.py index cc5a9ef..4204b8b 100644 --- a/toggl_py/tests/api/test_preferences_api.py +++ b/toggl_py/tests/api/test_preferences_api.py @@ -25,7 +25,9 @@ def test_PreferencesApi_get_preferences(api): Preferences for the current user # noqa: E501 """ - pass + response = api.get_preferences() + + assert response def test_PreferencesApi_get_preferences_client(api): @@ -33,7 +35,9 @@ def test_PreferencesApi_get_preferences_client(api): Preferences for an specific client of the current user # noqa: E501 """ - pass + response = api.get_preferences_client() + + assert response def test_PreferencesApi_get_workspace_preferences(api): @@ -41,7 +45,9 @@ def test_PreferencesApi_get_workspace_preferences(api): Get workspace preferences # noqa: E501 """ - pass + response = api.get_workspace_preferences() + + assert response def test_PreferencesApi_post_preferences(api): @@ -49,7 +55,9 @@ def test_PreferencesApi_post_preferences(api): Update the preferences for the current user # noqa: E501 """ - pass + response = api.post_preferences() + + assert response def test_PreferencesApi_post_preferences_client(api): @@ -57,7 +65,9 @@ def test_PreferencesApi_post_preferences_client(api): Update the preferences for an specific client of the current user # noqa: E501 """ - pass + response = api.post_preferences_client() + + assert response def test_PreferencesApi_post_workspace_preferences(api): @@ -65,4 +75,6 @@ def test_PreferencesApi_post_workspace_preferences(api): Get workspace preferences # noqa: E501 """ - pass + response = api.post_workspace_preferences() + + assert response diff --git a/toggl_py/tests/api/test_projects_api.py b/toggl_py/tests/api/test_projects_api.py index 83ea06f..d3a81de 100644 --- a/toggl_py/tests/api/test_projects_api.py +++ b/toggl_py/tests/api/test_projects_api.py @@ -25,7 +25,9 @@ def test_ProjectsApi_delete_workspace_project(api): WorkspaceProject # noqa: E501 """ - pass + response = api.delete_workspace_project() + + assert response def test_ProjectsApi_delete_workspace_project_users(api): @@ -33,7 +35,9 @@ def test_ProjectsApi_delete_workspace_project_users(api): Delete a project user from workspace projects users # noqa: E501 """ - pass + response = api.delete_workspace_project_users() + + assert response def test_ProjectsApi_get_projects(api): @@ -41,7 +45,9 @@ def test_ProjectsApi_get_projects(api): WorkspaceProjects # noqa: E501 """ - pass + response = api.get_projects() + + assert response def test_ProjectsApi_get_projects_templates(api): @@ -49,7 +55,9 @@ def test_ProjectsApi_get_projects_templates(api): WorkspaceProjectsTemplates # noqa: E501 """ - pass + response = api.get_projects_templates() + + assert response def test_ProjectsApi_get_workspace_project_periods(api): @@ -57,7 +65,9 @@ def test_ProjectsApi_get_workspace_project_periods(api): Get Recurring Project Periods # noqa: E501 """ - pass + response = api.get_workspace_project_periods() + + assert response def test_ProjectsApi_get_workspace_project_users(api): @@ -65,7 +75,9 @@ def test_ProjectsApi_get_workspace_project_users(api): Get workspace projects users # noqa: E501 """ - pass + response = api.get_workspace_project_users() + + assert response def test_ProjectsApi_patch_workspace_project_users_ids(api): @@ -73,7 +85,9 @@ def test_ProjectsApi_patch_workspace_project_users_ids(api): Patch project users from workspace # noqa: E501 """ - pass + response = api.patch_workspace_project_users_ids() + + assert response def test_ProjectsApi_patch_workspace_projects(api): @@ -81,7 +95,9 @@ def test_ProjectsApi_patch_workspace_projects(api): WorkspaceProjects # noqa: E501 """ - pass + response = api.patch_workspace_projects() + + assert response def test_ProjectsApi_post_workspace_project_create(api): @@ -89,7 +105,9 @@ def test_ProjectsApi_post_workspace_project_create(api): WorkspaceProjects # noqa: E501 """ - pass + response = api.post_workspace_project_create() + + assert response def test_ProjectsApi_post_workspace_project_users(api): @@ -97,7 +115,9 @@ def test_ProjectsApi_post_workspace_project_users(api): Add an user into workspace projects users # noqa: E501 """ - pass + response = api.post_workspace_project_users() + + assert response def test_ProjectsApi_put_workspace_project(api): @@ -105,7 +125,9 @@ def test_ProjectsApi_put_workspace_project(api): WorkspaceProject # noqa: E501 """ - pass + response = api.put_workspace_project() + + assert response def test_ProjectsApi_put_workspace_project_users(api): @@ -113,7 +135,9 @@ def test_ProjectsApi_put_workspace_project_users(api): Update an user into workspace projects users # noqa: E501 """ - pass + response = api.put_workspace_project_users() + + assert response def test_ProjectsApi_workspaces_workspace_id_projects_billable_amounts_post(api): @@ -121,7 +145,9 @@ def test_ProjectsApi_workspaces_workspace_id_projects_billable_amounts_post(api) Projects # noqa: E501 """ - pass + response = api.workspaces_workspace_id_projects_billable_amounts_post() + + assert response def test_ProjectsApi_workspaces_workspace_id_projects_project_id_get(api): @@ -129,7 +155,9 @@ def test_ProjectsApi_workspaces_workspace_id_projects_project_id_get(api): WorkspaceProject # noqa: E501 """ - pass + response = api.workspaces_workspace_id_projects_project_id_get() + + assert response def test_ProjectsApi_workspaces_workspace_id_projects_project_id_statistics_get(api): @@ -137,4 +165,6 @@ def test_ProjectsApi_workspaces_workspace_id_projects_project_id_statistics_get( WorkspaceProject # noqa: E501 """ - pass + response = api.workspaces_workspace_id_projects_project_id_statistics_get() + + assert response diff --git a/toggl_py/tests/api/test_rates_api.py b/toggl_py/tests/api/test_rates_api.py deleted file mode 100644 index aff16b5..0000000 --- a/toggl_py/tests/api/test_rates_api.py +++ /dev/null @@ -1,44 +0,0 @@ -""" -Public Toggl API. Note: We use BasicAuth in a specific way. By the standard you provide `Authentication` header with `base64(user_name:password)` as a `credential`. In our case it will be `base64(user_name:api_token)`. # noqa: E501 - -This file is auto generated by the swagger code generator program. -Do not edit this file manually. - -OpenAPI spec version: 9 -Generated by: https://github.com/compilerla/toggl-py -""" - -import pytest - -import toggl # noqa: F401 -from toggl.api.rates_api import RatesApi -from toggl.rest import ApiException # noqa: F401 - - -@pytest.fixture -def api(): - return RatesApi() - - -def test_RatesApi_create_rate(api): - """Test case for create_rate - - Rates creation # noqa: E501 - """ - pass - - -def test_RatesApi_delete_rate(api): - """Test case for delete_rate - - Rates delete # noqa: E501 - """ - pass - - -def test_RatesApi_get_rates_by_level(api): - """Test case for get_rates_by_level - - Rates list # noqa: E501 - """ - pass diff --git a/toggl_py/tests/api/test_reports_api.py b/toggl_py/tests/api/test_reports_api.py index c077d3d..4f19089 100644 --- a/toggl_py/tests/api/test_reports_api.py +++ b/toggl_py/tests/api/test_reports_api.py @@ -25,7 +25,9 @@ def test_ReportsApi_delete_saved_report_resource(api): models.SavedReport # noqa: E501 """ - pass + response = api.delete_saved_report_resource() + + assert response def test_ReportsApi_delete_workspace_scheduled_reports(api): @@ -33,7 +35,9 @@ def test_ReportsApi_delete_workspace_scheduled_reports(api): ScheduledReport # noqa: E501 """ - pass + response = api.delete_workspace_scheduled_reports() + + assert response def test_ReportsApi_get_saved_report_resource(api): @@ -41,7 +45,9 @@ def test_ReportsApi_get_saved_report_resource(api): models.SavedReport # noqa: E501 """ - pass + response = api.get_saved_report_resource() + + assert response def test_ReportsApi_get_shared_report(api): @@ -49,7 +55,9 @@ def test_ReportsApi_get_shared_report(api): workspace.SharedReport # noqa: E501 """ - pass + response = api.get_shared_report() + + assert response def test_ReportsApi_get_workspace_scheduled_reports(api): @@ -57,7 +65,9 @@ def test_ReportsApi_get_workspace_scheduled_reports(api): ScheduledReports # noqa: E501 """ - pass + response = api.get_workspace_scheduled_reports() + + assert response def test_ReportsApi_post_shared_report(api): @@ -65,7 +75,9 @@ def test_ReportsApi_post_shared_report(api): workspace.SharedReport # noqa: E501 """ - pass + response = api.post_shared_report() + + assert response def test_ReportsApi_post_workspace_scheduled_reports(api): @@ -73,7 +85,9 @@ def test_ReportsApi_post_workspace_scheduled_reports(api): ScheduledReports # noqa: E501 """ - pass + response = api.post_workspace_scheduled_reports() + + assert response def test_ReportsApi_put_saved_report_resource(api): @@ -81,7 +95,9 @@ def test_ReportsApi_put_saved_report_resource(api): models.SavedReport # noqa: E501 """ - pass + response = api.put_saved_report_resource() + + assert response def test_ReportsApi_put_shared_report(api): @@ -89,4 +105,6 @@ def test_ReportsApi_put_shared_report(api): workspace.SharedReport # noqa: E501 """ - pass + response = api.put_shared_report() + + assert response diff --git a/toggl_py/tests/api/test_saved_reports_api.py b/toggl_py/tests/api/test_saved_reports_api.py index 2a5b6fe..56df549 100644 --- a/toggl_py/tests/api/test_saved_reports_api.py +++ b/toggl_py/tests/api/test_saved_reports_api.py @@ -25,7 +25,9 @@ def test_SavedReportsApi_reports_api_v3_shared_report_token_csv_post(api): Export CSV for saved report # noqa: E501 """ - pass + response = api.reports_api_v3_shared_report_token_csv_post() + + assert response def test_SavedReportsApi_reports_api_v3_shared_report_token_pdf_post(api): @@ -33,7 +35,9 @@ def test_SavedReportsApi_reports_api_v3_shared_report_token_pdf_post(api): Export saved report in pdf format # noqa: E501 """ - pass + response = api.reports_api_v3_shared_report_token_pdf_post() + + assert response def test_SavedReportsApi_reports_api_v3_shared_report_token_post(api): @@ -41,7 +45,9 @@ def test_SavedReportsApi_reports_api_v3_shared_report_token_post(api): Load the previously saved report # noqa: E501 """ - pass + response = api.reports_api_v3_shared_report_token_post() + + assert response def test_SavedReportsApi_reports_api_v3_shared_report_token_xlsx_post(api): @@ -49,4 +55,6 @@ def test_SavedReportsApi_reports_api_v3_shared_report_token_xlsx_post(api): Export XSLX saved report # noqa: E501 """ - pass + response = api.reports_api_v3_shared_report_token_xlsx_post() + + assert response diff --git a/toggl_py/tests/api/test_smail_api.py b/toggl_py/tests/api/test_smail_api.py index af2127b..0d9805a 100644 --- a/toggl_py/tests/api/test_smail_api.py +++ b/toggl_py/tests/api/test_smail_api.py @@ -25,7 +25,9 @@ def test_SmailApi_post_smail_contact(api): Send an email to a contact # noqa: E501 """ - pass + response = api.post_smail_contact() + + assert response def test_SmailApi_post_smail_demo(api): @@ -33,7 +35,9 @@ def test_SmailApi_post_smail_demo(api): Send an email for a demo # noqa: E501 """ - pass + response = api.post_smail_demo() + + assert response def test_SmailApi_post_smail_meet(api): @@ -41,4 +45,6 @@ def test_SmailApi_post_smail_meet(api): Send an email for meet # noqa: E501 """ - pass + response = api.post_smail_meet() + + assert response diff --git a/toggl_py/tests/api/test_status_api.py b/toggl_py/tests/api/test_status_api.py index 8e17f24..90630fe 100644 --- a/toggl_py/tests/api/test_status_api.py +++ b/toggl_py/tests/api/test_status_api.py @@ -25,4 +25,6 @@ def test_StatusApi_get_status(api): Status # noqa: E501 """ - pass + response = api.get_status() + + assert response diff --git a/toggl_py/tests/api/test_subscription_api.py b/toggl_py/tests/api/test_subscription_api.py index 4f63cee..ee1cb17 100644 --- a/toggl_py/tests/api/test_subscription_api.py +++ b/toggl_py/tests/api/test_subscription_api.py @@ -25,7 +25,9 @@ def test_SubscriptionApi_delete_organization_subscription(api): Subscription # noqa: E501 """ - pass + response = api.delete_organization_subscription() + + assert response def test_SubscriptionApi_delete_workspace_subscription(api): @@ -33,7 +35,9 @@ def test_SubscriptionApi_delete_workspace_subscription(api): Subscription # noqa: E501 """ - pass + response = api.delete_workspace_subscription() + + assert response def test_SubscriptionApi_get_currencies(api): @@ -41,7 +45,9 @@ def test_SubscriptionApi_get_currencies(api): Currencies # noqa: E501 """ - pass + response = api.get_currencies() + + assert response def test_SubscriptionApi_get_organization_invoice(api): @@ -49,7 +55,9 @@ def test_SubscriptionApi_get_organization_invoice(api): InvoicePdf # noqa: E501 """ - pass + response = api.get_organization_invoice() + + assert response def test_SubscriptionApi_get_organization_invoice_summary(api): @@ -57,7 +65,9 @@ def test_SubscriptionApi_get_organization_invoice_summary(api): Invoice Summary # noqa: E501 """ - pass + response = api.get_organization_invoice_summary() + + assert response def test_SubscriptionApi_get_organization_subscription(api): @@ -65,7 +75,9 @@ def test_SubscriptionApi_get_organization_subscription(api): Subscription # noqa: E501 """ - pass + response = api.get_organization_subscription() + + assert response def test_SubscriptionApi_get_public_subscription_plans(api): @@ -73,7 +85,9 @@ def test_SubscriptionApi_get_public_subscription_plans(api): Public Subscription Plans # noqa: E501 """ - pass + response = api.get_public_subscription_plans() + + assert response def test_SubscriptionApi_get_workspace_currencies(api): @@ -81,7 +95,9 @@ def test_SubscriptionApi_get_workspace_currencies(api): Get workspace currencies # noqa: E501 """ - pass + response = api.get_workspace_currencies() + + assert response def test_SubscriptionApi_get_workspace_customer(api): @@ -89,7 +105,9 @@ def test_SubscriptionApi_get_workspace_customer(api): Customer # noqa: E501 """ - pass + response = api.get_workspace_customer() + + assert response def test_SubscriptionApi_get_workspace_features(api): @@ -97,7 +115,9 @@ def test_SubscriptionApi_get_workspace_features(api): Features # noqa: E501 """ - pass + response = api.get_workspace_features() + + assert response def test_SubscriptionApi_get_workspace_features_selected(api): @@ -105,7 +125,9 @@ def test_SubscriptionApi_get_workspace_features_selected(api): SelectedFeatures # noqa: E501 """ - pass + response = api.get_workspace_features_selected() + + assert response def test_SubscriptionApi_get_workspace_invoices(api): @@ -113,7 +135,9 @@ def test_SubscriptionApi_get_workspace_invoices(api): InvoicePdf # noqa: E501 """ - pass + response = api.get_workspace_invoices() + + assert response def test_SubscriptionApi_get_workspace_payment_receipts(api): @@ -121,7 +145,9 @@ def test_SubscriptionApi_get_workspace_payment_receipts(api): PaymentReceipts # noqa: E501 """ - pass + response = api.get_workspace_payment_receipts() + + assert response def test_SubscriptionApi_get_workspace_payment_records(api): @@ -129,7 +155,9 @@ def test_SubscriptionApi_get_workspace_payment_records(api): PaymentRecords # noqa: E501 """ - pass + response = api.get_workspace_payment_records() + + assert response def test_SubscriptionApi_get_workspace_plans(api): @@ -137,7 +165,9 @@ def test_SubscriptionApi_get_workspace_plans(api): WorkspacePlans # noqa: E501 """ - pass + response = api.get_workspace_plans() + + assert response def test_SubscriptionApi_get_workspace_plans_pricing(api): @@ -145,7 +175,9 @@ def test_SubscriptionApi_get_workspace_plans_pricing(api): WorkspacePlan # noqa: E501 """ - pass + response = api.get_workspace_plans_pricing() + + assert response def test_SubscriptionApi_get_workspace_purchase_order_pdf(api): @@ -153,7 +185,9 @@ def test_SubscriptionApi_get_workspace_purchase_order_pdf(api): PurchaseOrderPdf # noqa: E501 """ - pass + response = api.get_workspace_purchase_order_pdf() + + assert response def test_SubscriptionApi_get_workspace_subscription(api): @@ -161,7 +195,9 @@ def test_SubscriptionApi_get_workspace_subscription(api): Subscription # noqa: E501 """ - pass + response = api.get_workspace_subscription() + + assert response def test_SubscriptionApi_post_organization_plans_pricing_feedback(api): @@ -169,7 +205,9 @@ def test_SubscriptionApi_post_organization_plans_pricing_feedback(api): Feedback # noqa: E501 """ - pass + response = api.post_organization_plans_pricing_feedback() + + assert response def test_SubscriptionApi_post_organization_purchase_order(api): @@ -177,7 +215,9 @@ def test_SubscriptionApi_post_organization_purchase_order(api): PurchaseOrders # noqa: E501 """ - pass + response = api.post_organization_purchase_order() + + assert response def test_SubscriptionApi_post_organization_subscription(api): @@ -185,7 +225,9 @@ def test_SubscriptionApi_post_organization_subscription(api): Subscription # noqa: E501 """ - pass + response = api.post_organization_subscription() + + assert response def test_SubscriptionApi_post_organization_subscription_0(api): @@ -193,7 +235,9 @@ def test_SubscriptionApi_post_organization_subscription_0(api): Subscription # noqa: E501 """ - pass + response = api.post_organization_subscription_0() + + assert response def test_SubscriptionApi_post_workspace_customer(api): @@ -201,7 +245,9 @@ def test_SubscriptionApi_post_workspace_customer(api): ContactDetails # noqa: E501 """ - pass + response = api.post_workspace_customer() + + assert response def test_SubscriptionApi_post_workspace_plans_pricing_feedback(api): @@ -209,7 +255,9 @@ def test_SubscriptionApi_post_workspace_plans_pricing_feedback(api): Feedback # noqa: E501 """ - pass + response = api.post_workspace_plans_pricing_feedback() + + assert response def test_SubscriptionApi_post_workspace_purchase_order(api): @@ -217,7 +265,9 @@ def test_SubscriptionApi_post_workspace_purchase_order(api): PurchaseOrders # noqa: E501 """ - pass + response = api.post_workspace_purchase_order() + + assert response def test_SubscriptionApi_post_workspace_subscription(api): @@ -225,7 +275,9 @@ def test_SubscriptionApi_post_workspace_subscription(api): Subscription # noqa: E501 """ - pass + response = api.post_workspace_subscription() + + assert response def test_SubscriptionApi_post_workspace_subscription_calculate(api): @@ -233,7 +285,9 @@ def test_SubscriptionApi_post_workspace_subscription_calculate(api): SubscriptionCalculation # noqa: E501 """ - pass + response = api.post_workspace_subscription_calculate() + + assert response def test_SubscriptionApi_post_workspace_subscription_inc_accept(api): @@ -241,7 +295,9 @@ def test_SubscriptionApi_post_workspace_subscription_inc_accept(api): IncAccept # noqa: E501 """ - pass + response = api.post_workspace_subscription_inc_accept() + + assert response def test_SubscriptionApi_put_organization_subscription(api): @@ -249,7 +305,9 @@ def test_SubscriptionApi_put_organization_subscription(api): Subscription # noqa: E501 """ - pass + response = api.put_organization_subscription() + + assert response def test_SubscriptionApi_put_workspace_profile(api): @@ -257,4 +315,6 @@ def test_SubscriptionApi_put_workspace_profile(api): Profile # noqa: E501 """ - pass + response = api.put_workspace_profile() + + assert response diff --git a/toggl_py/tests/api/test_summary_reports_api.py b/toggl_py/tests/api/test_summary_reports_api.py index bf4fd8d..4219649 100644 --- a/toggl_py/tests/api/test_summary_reports_api.py +++ b/toggl_py/tests/api/test_summary_reports_api.py @@ -25,7 +25,9 @@ def test_SummaryReportsApi_reports_api_v3_workspace_workspace_id_projects_projec Load project summary # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_projects_project_id_summary_post() + + assert response def test_SummaryReportsApi_reports_api_v3_workspace_workspace_id_projects_summary_post(api): @@ -33,7 +35,9 @@ def test_SummaryReportsApi_reports_api_v3_workspace_workspace_id_projects_summar List project users # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_projects_summary_post() + + assert response def test_SummaryReportsApi_reports_api_v3_workspace_workspace_id_summary_time_entries_extension_post(api): @@ -41,7 +45,9 @@ def test_SummaryReportsApi_reports_api_v3_workspace_workspace_id_summary_time_en Export summary report # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_summary_time_entries_extension_post() + + assert response def test_SummaryReportsApi_reports_api_v3_workspace_workspace_id_summary_time_entries_pdf_post(api): @@ -49,7 +55,9 @@ def test_SummaryReportsApi_reports_api_v3_workspace_workspace_id_summary_time_en Export summary report # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_summary_time_entries_pdf_post() + + assert response def test_SummaryReportsApi_reports_api_v3_workspace_workspace_id_summary_time_entries_post(api): @@ -57,4 +65,6 @@ def test_SummaryReportsApi_reports_api_v3_workspace_workspace_id_summary_time_en Search time entries # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_summary_time_entries_post() + + assert response diff --git a/toggl_py/tests/api/test_tags_api.py b/toggl_py/tests/api/test_tags_api.py index 5b0a3d9..394755c 100644 --- a/toggl_py/tests/api/test_tags_api.py +++ b/toggl_py/tests/api/test_tags_api.py @@ -25,7 +25,9 @@ def test_TagsApi_delete_workspace_tag(api): Delete tag # noqa: E501 """ - pass + response = api.delete_workspace_tag() + + assert response def test_TagsApi_get_workspace_tag(api): @@ -33,7 +35,9 @@ def test_TagsApi_get_workspace_tag(api): Tags # noqa: E501 """ - pass + response = api.get_workspace_tag() + + assert response def test_TagsApi_patch_workspace_tags(api): @@ -41,7 +45,9 @@ def test_TagsApi_patch_workspace_tags(api): Bulk delete tags # noqa: E501 """ - pass + response = api.patch_workspace_tags() + + assert response def test_TagsApi_post_workspace_tag(api): @@ -49,7 +55,9 @@ def test_TagsApi_post_workspace_tag(api): Create tag # noqa: E501 """ - pass + response = api.post_workspace_tag() + + assert response def test_TagsApi_put_workspace_tag(api): @@ -57,4 +65,6 @@ def test_TagsApi_put_workspace_tag(api): Update tag # noqa: E501 """ - pass + response = api.put_workspace_tag() + + assert response diff --git a/toggl_py/tests/api/test_tasks_api.py b/toggl_py/tests/api/test_tasks_api.py index 8897d3b..9dfb63c 100644 --- a/toggl_py/tests/api/test_tasks_api.py +++ b/toggl_py/tests/api/test_tasks_api.py @@ -25,7 +25,9 @@ def test_TasksApi_delete_workspace_project_task(api): WorkspaceProjectTask # noqa: E501 """ - pass + response = api.delete_workspace_project_task() + + assert response def test_TasksApi_get_workspace_project_task(api): @@ -33,7 +35,9 @@ def test_TasksApi_get_workspace_project_task(api): WorkspaceProjectTask # noqa: E501 """ - pass + response = api.get_workspace_project_task() + + assert response def test_TasksApi_get_workspace_project_tasks(api): @@ -41,7 +45,9 @@ def test_TasksApi_get_workspace_project_tasks(api): WorkspaceProjectTasks # noqa: E501 """ - pass + response = api.get_workspace_project_tasks() + + assert response def test_TasksApi_get_workspace_tasks(api): @@ -49,7 +55,9 @@ def test_TasksApi_get_workspace_tasks(api): Tasks # noqa: E501 """ - pass + response = api.get_workspace_tasks() + + assert response def test_TasksApi_patch_workspace_project_tasks(api): @@ -57,7 +65,9 @@ def test_TasksApi_patch_workspace_project_tasks(api): WorkspaceProjectTasks # noqa: E501 """ - pass + response = api.patch_workspace_project_tasks() + + assert response def test_TasksApi_post_workspace_project_tasks(api): @@ -65,7 +75,9 @@ def test_TasksApi_post_workspace_project_tasks(api): WorkspaceProjectTasks # noqa: E501 """ - pass + response = api.post_workspace_project_tasks() + + assert response def test_TasksApi_put_workspace_project_task(api): @@ -73,4 +85,6 @@ def test_TasksApi_put_workspace_project_task(api): WorkspaceProjectTask # noqa: E501 """ - pass + response = api.put_workspace_project_task() + + assert response diff --git a/toggl_py/tests/api/test_time_entries_api.py b/toggl_py/tests/api/test_time_entries_api.py index 10771f3..525a610 100644 --- a/toggl_py/tests/api/test_time_entries_api.py +++ b/toggl_py/tests/api/test_time_entries_api.py @@ -25,7 +25,9 @@ def test_TimeEntriesApi_delete_workspace_time_entries(api): TimeEntries # noqa: E501 """ - pass + response = api.delete_workspace_time_entries() + + assert response def test_TimeEntriesApi_get_current_time_entry(api): @@ -33,7 +35,9 @@ def test_TimeEntriesApi_get_current_time_entry(api): Get current time entry # noqa: E501 """ - pass + response = api.get_current_time_entry() + + assert response def test_TimeEntriesApi_get_time_entries(api): @@ -41,7 +45,9 @@ def test_TimeEntriesApi_get_time_entries(api): TimeEntries # noqa: E501 """ - pass + response = api.get_time_entries() + + assert response def test_TimeEntriesApi_get_time_entry_by_id(api): @@ -49,7 +55,9 @@ def test_TimeEntriesApi_get_time_entry_by_id(api): Get a time entry by ID. # noqa: E501 """ - pass + response = api.get_time_entry_by_id() + + assert response def test_TimeEntriesApi_get_time_notes_entry_notes_by_id(api): @@ -57,7 +65,9 @@ def test_TimeEntriesApi_get_time_notes_entry_notes_by_id(api): Get a time entries' notes by ID. # noqa: E501 """ - pass + response = api.get_time_notes_entry_notes_by_id() + + assert response def test_TimeEntriesApi_get_workspace_time_entry_invitations(api): @@ -65,7 +75,9 @@ def test_TimeEntriesApi_get_workspace_time_entry_invitations(api): TimeEntries # noqa: E501 """ - pass + response = api.get_workspace_time_entry_invitations() + + assert response def test_TimeEntriesApi_patch_time_entries(api): @@ -73,7 +85,9 @@ def test_TimeEntriesApi_patch_time_entries(api): Bulk editing time entries # noqa: E501 """ - pass + response = api.patch_time_entries() + + assert response def test_TimeEntriesApi_patch_workspace_stop_time_entry_handler(api): @@ -81,7 +95,9 @@ def test_TimeEntriesApi_patch_workspace_stop_time_entry_handler(api): Stop TimeEntry # noqa: E501 """ - pass + response = api.patch_workspace_stop_time_entry_handler() + + assert response def test_TimeEntriesApi_post_workspace_time_entries(api): @@ -89,7 +105,9 @@ def test_TimeEntriesApi_post_workspace_time_entries(api): TimeEntries # noqa: E501 """ - pass + response = api.post_workspace_time_entries() + + assert response def test_TimeEntriesApi_post_workspace_time_entry_invitation_action(api): @@ -97,7 +115,9 @@ def test_TimeEntriesApi_post_workspace_time_entry_invitation_action(api): TimeEntries # noqa: E501 """ - pass + response = api.post_workspace_time_entry_invitation_action() + + assert response def test_TimeEntriesApi_put_time_entry_notes_by_id(api): @@ -105,7 +125,9 @@ def test_TimeEntriesApi_put_time_entry_notes_by_id(api): Put a time entry notes by ID. # noqa: E501 """ - pass + response = api.put_time_entry_notes_by_id() + + assert response def test_TimeEntriesApi_put_workspace_time_entry_handler(api): @@ -113,4 +135,6 @@ def test_TimeEntriesApi_put_workspace_time_entry_handler(api): TimeEntries # noqa: E501 """ - pass + response = api.put_workspace_time_entry_handler() + + assert response diff --git a/toggl_py/tests/api/test_time_entries_notes_api.py b/toggl_py/tests/api/test_time_entries_notes_api.py index e9e9312..cf2d7ba 100644 --- a/toggl_py/tests/api/test_time_entries_notes_api.py +++ b/toggl_py/tests/api/test_time_entries_notes_api.py @@ -25,4 +25,6 @@ def test_TimeEntriesNotesApi_delete_time_entry_notes_by_id(api): delete a time entry note by ID. # noqa: E501 """ - pass + response = api.delete_time_entry_notes_by_id() + + assert response diff --git a/toggl_py/tests/api/test_time_entry_constraints_api.py b/toggl_py/tests/api/test_time_entry_constraints_api.py index 0636b2c..8743ade 100644 --- a/toggl_py/tests/api/test_time_entry_constraints_api.py +++ b/toggl_py/tests/api/test_time_entry_constraints_api.py @@ -25,4 +25,6 @@ def test_TimeEntryConstraintsApi_get_workspace_time_entry_constraints(api): Get workspace time entry constraints # noqa: E501 """ - pass + response = api.get_workspace_time_entry_constraints() + + assert response diff --git a/toggl_py/tests/api/test_timeline_api.py b/toggl_py/tests/api/test_timeline_api.py index 753e6bb..61600cb 100644 --- a/toggl_py/tests/api/test_timeline_api.py +++ b/toggl_py/tests/api/test_timeline_api.py @@ -25,7 +25,9 @@ def test_TimelineApi_timeline_delete(api): Delete all timeline data # noqa: E501 """ - pass + response = api.timeline_delete() + + assert response def test_TimelineApi_timeline_get(api): @@ -33,7 +35,9 @@ def test_TimelineApi_timeline_get(api): Get timeline events # noqa: E501 """ - pass + response = api.timeline_get() + + assert response def test_TimelineApi_timeline_post(api): @@ -41,4 +45,6 @@ def test_TimelineApi_timeline_post(api): Save timeline events # noqa: E501 """ - pass + response = api.timeline_post() + + assert response diff --git a/toggl_py/tests/api/test_timezones_api.py b/toggl_py/tests/api/test_timezones_api.py index bac4a8e..abe8835 100644 --- a/toggl_py/tests/api/test_timezones_api.py +++ b/toggl_py/tests/api/test_timezones_api.py @@ -25,7 +25,9 @@ def test_TimezonesApi_get_offsets(api): Offsets # noqa: E501 """ - pass + response = api.get_offsets() + + assert response def test_TimezonesApi_get_timezones(api): @@ -33,4 +35,6 @@ def test_TimezonesApi_get_timezones(api): Timezones # noqa: E501 """ - pass + response = api.get_timezones() + + assert response diff --git a/toggl_py/tests/api/test_user_invoices_api.py b/toggl_py/tests/api/test_user_invoices_api.py index 2aa233d..e7778ab 100644 --- a/toggl_py/tests/api/test_user_invoices_api.py +++ b/toggl_py/tests/api/test_user_invoices_api.py @@ -25,7 +25,9 @@ def test_UserInvoicesApi_delete_workspace_invoice(api): Delete user invoice. # noqa: E501 """ - pass + response = api.delete_workspace_invoice() + + assert response def test_UserInvoicesApi_get_workspace_invoices(api): @@ -33,7 +35,9 @@ def test_UserInvoicesApi_get_workspace_invoices(api): Get workspace invoices. # noqa: E501 """ - pass + response = api.get_workspace_invoices() + + assert response def test_UserInvoicesApi_post_workspace_user_invoice(api): @@ -41,4 +45,6 @@ def test_UserInvoicesApi_post_workspace_user_invoice(api): Create user invoice # noqa: E501 """ - pass + response = api.post_workspace_user_invoice() + + assert response diff --git a/toggl_py/tests/api/test_users_api.py b/toggl_py/tests/api/test_users_api.py index 34dd742..890e8cc 100644 --- a/toggl_py/tests/api/test_users_api.py +++ b/toggl_py/tests/api/test_users_api.py @@ -25,7 +25,9 @@ def test_UsersApi_delete_organization_users_leave(api): Leaves organization # noqa: E501 """ - pass + response = api.delete_organization_users_leave() + + assert response def test_UsersApi_delete_workspace_user(api): @@ -33,7 +35,9 @@ def test_UsersApi_delete_workspace_user(api): Delete workspace user # noqa: E501 """ - pass + response = api.delete_workspace_user() + + assert response def test_UsersApi_get_organization_users(api): @@ -41,7 +45,9 @@ def test_UsersApi_get_organization_users(api): List of users in organization # noqa: E501 """ - pass + response = api.get_organization_users() + + assert response def test_UsersApi_get_organization_users_detailed(api): @@ -49,7 +55,9 @@ def test_UsersApi_get_organization_users_detailed(api): List of users in organization with details # noqa: E501 """ - pass + response = api.get_organization_users_detailed() + + assert response def test_UsersApi_get_organization_workspaces_workspaceusers(api): @@ -57,7 +65,9 @@ def test_UsersApi_get_organization_workspaces_workspaceusers(api): List of users who belong to the given workspace. # noqa: E501 """ - pass + response = api.get_organization_workspaces_workspaceusers() + + assert response def test_UsersApi_get_workspace_users(api): @@ -65,7 +75,9 @@ def test_UsersApi_get_workspace_users(api): Get workspace users # noqa: E501 """ - pass + response = api.get_workspace_users() + + assert response def test_UsersApi_get_workspace_workspace_users(api): @@ -73,7 +85,9 @@ def test_UsersApi_get_workspace_workspace_users(api): Get workspace workspace-users # noqa: E501 """ - pass + response = api.get_workspace_workspace_users() + + assert response def test_UsersApi_patch_organization_users(api): @@ -81,7 +95,9 @@ def test_UsersApi_patch_organization_users(api): Apply changes in bulk to users in an organization # noqa: E501 """ - pass + response = api.patch_organization_users() + + assert response def test_UsersApi_patch_organization_workspace_users(api): @@ -89,7 +105,9 @@ def test_UsersApi_patch_organization_workspace_users(api): Changes the users in a workspace. # noqa: E501 """ - pass + response = api.patch_organization_workspace_users() + + assert response def test_UsersApi_post_workspace_users_lost_password(api): @@ -97,7 +115,9 @@ def test_UsersApi_post_workspace_users_lost_password(api): Change a lost password # noqa: E501 """ - pass + response = api.post_workspace_users_lost_password() + + assert response def test_UsersApi_put_organization_users(api): @@ -105,7 +125,9 @@ def test_UsersApi_put_organization_users(api): Changes a single organization-user # noqa: E501 """ - pass + response = api.put_organization_users() + + assert response def test_UsersApi_put_organization_workspaces_assignments(api): @@ -113,7 +135,9 @@ def test_UsersApi_put_organization_workspaces_assignments(api): Change assignments of users within a workspace. # noqa: E501 """ - pass + response = api.put_organization_workspaces_assignments() + + assert response def test_UsersApi_put_workspace_users(api): @@ -121,7 +145,9 @@ def test_UsersApi_put_workspace_users(api): Update workspace user # noqa: E501 """ - pass + response = api.put_workspace_users() + + assert response def test_UsersApi_put_workspace_workspace_users(api): @@ -129,4 +155,6 @@ def test_UsersApi_put_workspace_workspace_users(api): Update workspace-user # noqa: E501 """ - pass + response = api.put_workspace_workspace_users() + + assert response diff --git a/toggl_py/tests/api/test_utils_api.py b/toggl_py/tests/api/test_utils_api.py deleted file mode 100644 index 5027d1c..0000000 --- a/toggl_py/tests/api/test_utils_api.py +++ /dev/null @@ -1,124 +0,0 @@ -""" -Public Toggl API. Note: We use BasicAuth in a specific way. By the standard you provide `Authentication` header with `base64(user_name:password)` as a `credential`. In our case it will be `base64(user_name:api_token)`. # noqa: E501 - -This file is auto generated by the swagger code generator program. -Do not edit this file manually. - -OpenAPI spec version: 9 -Generated by: https://github.com/compilerla/toggl-py -""" - -import pytest - -import toggl # noqa: F401 -from toggl.api.utils_api import UtilsApi -from toggl.rest import ApiException # noqa: F401 - - -@pytest.fixture -def api(): - return UtilsApi() - - -def test_UtilsApi_reports_api_v3_workspace_workspace_id_action_tasks_auth_post(api): - """Test case for reports_api_v3_workspace_workspace_id_action_tasks_auth_post - - List tasks # noqa: E501 - """ - pass - - -def test_UtilsApi_reports_api_v3_workspace_workspace_id_action_tasks_post(api): - """Test case for reports_api_v3_workspace_workspace_id_action_tasks_post - - List tasks # noqa: E501 - """ - pass - - -def test_UtilsApi_reports_api_v3_workspace_workspace_id_filters_clients_post(api): - """Test case for reports_api_v3_workspace_workspace_id_filters_clients_post - - List clients # noqa: E501 - """ - pass - - -def test_UtilsApi_reports_api_v3_workspace_workspace_id_filters_project_groups_post(api): - """Test case for reports_api_v3_workspace_workspace_id_filters_project_groups_post - - List project groups filter # noqa: E501 - """ - pass - - -def test_UtilsApi_reports_api_v3_workspace_workspace_id_filters_project_users_post(api): - """Test case for reports_api_v3_workspace_workspace_id_filters_project_users_post - - List project users # noqa: E501 - """ - pass - - -def test_UtilsApi_reports_api_v3_workspace_workspace_id_filters_projects_post(api): - """Test case for reports_api_v3_workspace_workspace_id_filters_projects_post - - List projects # noqa: E501 - """ - pass - - -def test_UtilsApi_reports_api_v3_workspace_workspace_id_filters_projects_status_post(api): - """Test case for reports_api_v3_workspace_workspace_id_filters_projects_status_post - - List projects statuses # noqa: E501 - """ - pass - - -def test_UtilsApi_reports_api_v3_workspace_workspace_id_filters_tasks_auth_status_post(api): - """Test case for reports_api_v3_workspace_workspace_id_filters_tasks_auth_status_post - - List tasks statuses # noqa: E501 - """ - pass - - -def test_UtilsApi_reports_api_v3_workspace_workspace_id_filters_tasks_status_post(api): - """Test case for reports_api_v3_workspace_workspace_id_filters_tasks_status_post - - List tasks statuses # noqa: E501 - """ - pass - - -def test_UtilsApi_reports_api_v3_workspace_workspace_id_filters_users_post(api): - """Test case for reports_api_v3_workspace_workspace_id_filters_users_post - - List users # noqa: E501 - """ - pass - - -def test_UtilsApi_reports_api_v3_workspace_workspace_id_search_clients_post(api): - """Test case for reports_api_v3_workspace_workspace_id_search_clients_post - - Search clients # noqa: E501 - """ - pass - - -def test_UtilsApi_reports_api_v3_workspace_workspace_id_search_projects_post(api): - """Test case for reports_api_v3_workspace_workspace_id_search_projects_post - - List projects # noqa: E501 - """ - pass - - -def test_UtilsApi_reports_api_v3_workspace_workspace_id_search_users_post(api): - """Test case for reports_api_v3_workspace_workspace_id_search_users_post - - List users # noqa: E501 - """ - pass diff --git a/toggl_py/tests/api/test_weekly_reports_api.py b/toggl_py/tests/api/test_weekly_reports_api.py index 4ebda63..c979c49 100644 --- a/toggl_py/tests/api/test_weekly_reports_api.py +++ b/toggl_py/tests/api/test_weekly_reports_api.py @@ -25,7 +25,9 @@ def test_WeeklyReportsApi_reports_api_v3_workspace_workspace_id_weekly_time_entr Export weekly report # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_weekly_time_entries_csv_post() + + assert response def test_WeeklyReportsApi_reports_api_v3_workspace_workspace_id_weekly_time_entries_pdf_post(api): @@ -33,7 +35,9 @@ def test_WeeklyReportsApi_reports_api_v3_workspace_workspace_id_weekly_time_entr Export weekly report # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_weekly_time_entries_pdf_post() + + assert response def test_WeeklyReportsApi_reports_api_v3_workspace_workspace_id_weekly_time_entries_post(api): @@ -41,4 +45,6 @@ def test_WeeklyReportsApi_reports_api_v3_workspace_workspace_id_weekly_time_entr Search time entries # noqa: E501 """ - pass + response = api.reports_api_v3_workspace_workspace_id_weekly_time_entries_post() + + assert response diff --git a/toggl_py/tests/api/test_workspaces_api.py b/toggl_py/tests/api/test_workspaces_api.py index 8d8d567..c81904f 100644 --- a/toggl_py/tests/api/test_workspaces_api.py +++ b/toggl_py/tests/api/test_workspaces_api.py @@ -25,7 +25,9 @@ def test_WorkspacesApi_delete_alerts(api): Alerts # noqa: E501 """ - pass + response = api.delete_alerts() + + assert response def test_WorkspacesApi_delete_timesheet_setups(api): @@ -33,7 +35,9 @@ def test_WorkspacesApi_delete_timesheet_setups(api): Delete a timesheet setup # noqa: E501 """ - pass + response = api.delete_timesheet_setups() + + assert response def test_WorkspacesApi_delete_workspace_track_reminder(api): @@ -41,7 +45,9 @@ def test_WorkspacesApi_delete_workspace_track_reminder(api): TrackReminder # noqa: E501 """ - pass + response = api.delete_workspace_track_reminder() + + assert response def test_WorkspacesApi_delete_workspace_user(api): @@ -49,7 +55,9 @@ def test_WorkspacesApi_delete_workspace_user(api): Delete workspace user # noqa: E501 """ - pass + response = api.delete_workspace_user() + + assert response def test_WorkspacesApi_get_organization_workspaces_groups(api): @@ -57,7 +65,9 @@ def test_WorkspacesApi_get_organization_workspaces_groups(api): List of groups in a workspace within an organization with user assignments. # noqa: E501 """ - pass + response = api.get_organization_workspaces_groups() + + assert response def test_WorkspacesApi_get_organization_workspaces_statistics(api): @@ -65,7 +75,9 @@ def test_WorkspacesApi_get_organization_workspaces_statistics(api): Statistics for all workspaces in the organization # noqa: E501 """ - pass + response = api.get_organization_workspaces_statistics() + + assert response def test_WorkspacesApi_get_organization_workspaces_workspaceusers(api): @@ -73,7 +85,9 @@ def test_WorkspacesApi_get_organization_workspaces_workspaceusers(api): List of users who belong to the given workspace. # noqa: E501 """ - pass + response = api.get_organization_workspaces_workspaceusers() + + assert response def test_WorkspacesApi_get_timesheet_setups(api): @@ -81,7 +95,9 @@ def test_WorkspacesApi_get_timesheet_setups(api): Get timesheet setups # noqa: E501 """ - pass + response = api.get_timesheet_setups() + + assert response def test_WorkspacesApi_get_workspace(api): @@ -89,7 +105,9 @@ def test_WorkspacesApi_get_workspace(api): Get single workspace # noqa: E501 """ - pass + response = api.get_workspace() + + assert response def test_WorkspacesApi_get_workspace_statistics(api): @@ -97,7 +115,9 @@ def test_WorkspacesApi_get_workspace_statistics(api): Workspace statistics # noqa: E501 """ - pass + response = api.get_workspace_statistics() + + assert response def test_WorkspacesApi_get_workspace_time_entry_constraints(api): @@ -105,7 +125,9 @@ def test_WorkspacesApi_get_workspace_time_entry_constraints(api): Get workspace time entry constraints # noqa: E501 """ - pass + response = api.get_workspace_time_entry_constraints() + + assert response def test_WorkspacesApi_get_workspace_timesheet_hours_handler(api): @@ -113,7 +135,9 @@ def test_WorkspacesApi_get_workspace_timesheet_hours_handler(api): Get timesheets hours # noqa: E501 """ - pass + response = api.get_workspace_timesheet_hours_handler() + + assert response def test_WorkspacesApi_get_workspace_timesheet_time_entries_handler(api): @@ -121,7 +145,9 @@ def test_WorkspacesApi_get_workspace_timesheet_time_entries_handler(api): Get timesheet time entries # noqa: E501 """ - pass + response = api.get_workspace_timesheet_time_entries_handler() + + assert response def test_WorkspacesApi_get_workspace_timesheets_handler(api): @@ -129,7 +155,9 @@ def test_WorkspacesApi_get_workspace_timesheets_handler(api): Get timesheets # noqa: E501 """ - pass + response = api.get_workspace_timesheets_handler() + + assert response def test_WorkspacesApi_get_workspace_track_reminders(api): @@ -137,7 +165,9 @@ def test_WorkspacesApi_get_workspace_track_reminders(api): TrackReminders # noqa: E501 """ - pass + response = api.get_workspace_track_reminders() + + assert response def test_WorkspacesApi_get_workspace_users(api): @@ -145,7 +175,9 @@ def test_WorkspacesApi_get_workspace_users(api): Get workspace users # noqa: E501 """ - pass + response = api.get_workspace_users() + + assert response def test_WorkspacesApi_get_workspaces(api): @@ -153,7 +185,9 @@ def test_WorkspacesApi_get_workspaces(api): Workspaces # noqa: E501 """ - pass + response = api.get_workspaces() + + assert response def test_WorkspacesApi_get_workspaces_0(api): @@ -161,7 +195,9 @@ def test_WorkspacesApi_get_workspaces_0(api): Workspaces # noqa: E501 """ - pass + response = api.get_workspaces_0() + + assert response def test_WorkspacesApi_patch_organization_workspace_users(api): @@ -169,7 +205,9 @@ def test_WorkspacesApi_patch_organization_workspace_users(api): Changes the users in a workspace. # noqa: E501 """ - pass + response = api.patch_organization_workspace_users() + + assert response def test_WorkspacesApi_post_alerts(api): @@ -177,7 +215,9 @@ def test_WorkspacesApi_post_alerts(api): Alerts # noqa: E501 """ - pass + response = api.post_alerts() + + assert response def test_WorkspacesApi_post_organization_workspaces(api): @@ -185,7 +225,9 @@ def test_WorkspacesApi_post_organization_workspaces(api): Create a new workspace. # noqa: E501 """ - pass + response = api.post_organization_workspaces() + + assert response def test_WorkspacesApi_post_timesheet_setups(api): @@ -193,7 +235,9 @@ def test_WorkspacesApi_post_timesheet_setups(api): Create a timesheet setup # noqa: E501 """ - pass + response = api.post_timesheet_setups() + + assert response def test_WorkspacesApi_post_workspace_track_reminders(api): @@ -201,7 +245,9 @@ def test_WorkspacesApi_post_workspace_track_reminders(api): TrackReminders # noqa: E501 """ - pass + response = api.post_workspace_track_reminders() + + assert response def test_WorkspacesApi_post_workspace_users_lost_password(api): @@ -209,7 +255,9 @@ def test_WorkspacesApi_post_workspace_users_lost_password(api): Change a lost password # noqa: E501 """ - pass + response = api.post_workspace_users_lost_password() + + assert response def test_WorkspacesApi_post_workspaces(api): @@ -217,7 +265,9 @@ def test_WorkspacesApi_post_workspaces(api): Workspaces # noqa: E501 """ - pass + response = api.post_workspaces() + + assert response def test_WorkspacesApi_put_organization_workspaces_assignments(api): @@ -225,7 +275,9 @@ def test_WorkspacesApi_put_organization_workspaces_assignments(api): Change assignments of users within a workspace. # noqa: E501 """ - pass + response = api.put_organization_workspaces_assignments() + + assert response def test_WorkspacesApi_put_timesheet_setups(api): @@ -233,7 +285,9 @@ def test_WorkspacesApi_put_timesheet_setups(api): Update a timesheet setup # noqa: E501 """ - pass + response = api.put_timesheet_setups() + + assert response def test_WorkspacesApi_put_workspace_timesheets_handler(api): @@ -241,7 +295,9 @@ def test_WorkspacesApi_put_workspace_timesheets_handler(api): Update timesheets # noqa: E501 """ - pass + response = api.put_workspace_timesheets_handler() + + assert response def test_WorkspacesApi_put_workspace_track_reminder(api): @@ -249,7 +305,9 @@ def test_WorkspacesApi_put_workspace_track_reminder(api): TrackReminder # noqa: E501 """ - pass + response = api.put_workspace_track_reminder() + + assert response def test_WorkspacesApi_put_workspace_users(api): @@ -257,7 +315,9 @@ def test_WorkspacesApi_put_workspace_users(api): Update workspace user # noqa: E501 """ - pass + response = api.put_workspace_users() + + assert response def test_WorkspacesApi_put_workspace_workspace_users(api): @@ -265,7 +325,9 @@ def test_WorkspacesApi_put_workspace_workspace_users(api): Update workspace-user # noqa: E501 """ - pass + response = api.put_workspace_workspace_users() + + assert response def test_WorkspacesApi_put_workspaces(api): @@ -273,4 +335,6 @@ def test_WorkspacesApi_put_workspaces(api): Update workspace # noqa: E501 """ - pass + response = api.put_workspaces() + + assert response diff --git a/toggl_py/tests/api/test_workspaceslogo_api.py b/toggl_py/tests/api/test_workspaceslogo_api.py index 1dc873f..eabd986 100644 --- a/toggl_py/tests/api/test_workspaceslogo_api.py +++ b/toggl_py/tests/api/test_workspaceslogo_api.py @@ -25,7 +25,9 @@ def test_WorkspaceslogoApi_get_workspace_logo(api): Get workspace logo # noqa: E501 """ - pass + response = api.get_workspace_logo() + + assert response def test_WorkspaceslogoApi_get_workspace_logo_0(api): @@ -33,7 +35,9 @@ def test_WorkspaceslogoApi_get_workspace_logo_0(api): Delete workspace logo # noqa: E501 """ - pass + response = api.get_workspace_logo_0() + + assert response def test_WorkspaceslogoApi_post_workspace_logo(api): @@ -41,4 +45,6 @@ def test_WorkspaceslogoApi_post_workspace_logo(api): Post workspace logo # noqa: E501 """ - pass + response = api.post_workspace_logo() + + assert response diff --git a/toggl_py/tests/api/test_workspacesreportsshared_api.py b/toggl_py/tests/api/test_workspacesreportsshared_api.py index 4a27e8d..20953d6 100644 --- a/toggl_py/tests/api/test_workspacesreportsshared_api.py +++ b/toggl_py/tests/api/test_workspacesreportsshared_api.py @@ -25,4 +25,6 @@ def test_WorkspacesreportssharedApi_bulk_delete_saved_report_resource(api): SavedReport # noqa: E501 """ - pass + response = api.bulk_delete_saved_report_resource() + + assert response diff --git a/toggl_py/tests/api/test_workspacestime_entry_constraints_api.py b/toggl_py/tests/api/test_workspacestime_entry_constraints_api.py index 48b46f0..3f02a63 100644 --- a/toggl_py/tests/api/test_workspacestime_entry_constraints_api.py +++ b/toggl_py/tests/api/test_workspacestime_entry_constraints_api.py @@ -25,4 +25,6 @@ def test_WorkspacestimeEntryConstraintsApi_post_workspace_time_entry_constraints Post workspace time entry constraints # noqa: E501 """ - pass + response = api.post_workspace_time_entry_constraints() + + assert response