Coverage report: 81%

Files Functions Classes

coverage.py v7.15.3, created at 2026-08-04 18:15 +0000

File function   statements missing excluded   coverage
pephubclient/__init__.py (no function)   10 0 0   100%
pephubclient/constants.py RegistryPath.tag_should_not_be_none   1 0 0   100%
pephubclient/constants.py (no function)   35 1 0   97%
pephubclient/exceptions.py BasePephubclientException.__init__   1 0 0   100%
pephubclient/exceptions.py IncorrectQueryStringError.__init__   2 2 0   0%
pephubclient/exceptions.py ResponseError.__init__   2 0 0   100%
pephubclient/exceptions.py PEPExistsError.__init__   2 2 0   0%
pephubclient/exceptions.py FileDoesNotExistError.__init__   2 2 0   0%
pephubclient/exceptions.py (no function)   14 0 0   100%
pephubclient/files_manager.py FilesManager.save_token_data   3 3 0   0%
pephubclient/files_manager.py FilesManager.load_token_data   4 1 0   75%
pephubclient/files_manager.py FilesManager.create_project_folder   6 6 0   0%
pephubclient/files_manager.py FilesManager.save_yaml   3 3 0   0%
pephubclient/files_manager.py FilesManager.save_pandas   2 2 0   0%
pephubclient/files_manager.py FilesManager.file_exists   1 1 0   0%
pephubclient/files_manager.py FilesManager.delete_file_if_exists   3 0 0   100%
pephubclient/files_manager.py FilesManager.check_writable   2 2 0   0%
pephubclient/files_manager.py FilesManager.save_zip_file   4 4 0   0%
pephubclient/files_manager.py (no function)   28 0 0   100%
pephubclient/helpers.py RequestManager.send_request   5 1 0   80%
pephubclient/helpers.py RequestManager.decode_response   6 3 0   50%
pephubclient/helpers.py RequestManager.parse_query_param   1 0 0   100%
pephubclient/helpers.py RequestManager.parse_header   3 0 0   100%
pephubclient/helpers.py MessageHandler.print_error   1 1 0   0%
pephubclient/helpers.py MessageHandler.print_success   1 0 0   100%
pephubclient/helpers.py MessageHandler.print_warning   1 0 0   100%
pephubclient/helpers.py call_client_func   10 10 0   0%
pephubclient/helpers.py is_registry_path   7 0 0   100%
pephubclient/helpers.py unwrap_registry_path   1 1 0   0%
pephubclient/helpers.py _build_filename   4 0 0   100%
pephubclient/helpers.py _save_zip_pep   19 19 0   0%
pephubclient/helpers.py _save_unzipped_pep   28 6 0   79%
pephubclient/helpers.py _save_unzipped_pep.full_path   1 0 0   100%
pephubclient/helpers.py save_pep   13 4 0   69%
pephubclient/helpers.py open_schema   12 12 0   0%
pephubclient/helpers.py save_schema   7 7 0   0%
pephubclient/helpers.py schema_path_converter   7 7 0   0%
pephubclient/helpers.py (no function)   46 0 0   100%
pephubclient/models.py ProjectUploadData.tag_should_not_be_none   1 0 0   100%
pephubclient/models.py (no function)   35 0 0   100%
pephubclient/modules/__init__.py (no function)   0 0 0   100%
pephubclient/modules/sample.py PEPHubSample.__init__   1 0 0   100%
pephubclient/modules/sample.py PEPHubSample.get   10 0 0   100%
pephubclient/modules/sample.py PEPHubSample.create   13 0 0   100%
pephubclient/modules/sample.py PEPHubSample.update   9 0 0   100%
pephubclient/modules/sample.py PEPHubSample.remove   9 0 0   100%
pephubclient/modules/sample.py PEPHubSample._build_sample_request_url   1 0 0   100%
pephubclient/modules/sample.py (no function)   13 0 0   100%
pephubclient/modules/view.py PEPHubView.__init__   1 0 0   100%
pephubclient/modules/view.py PEPHubView.get   12 1 0   92%
pephubclient/modules/view.py PEPHubView.create   13 2 0   85%
pephubclient/modules/view.py PEPHubView.delete   11 1 0   91%
pephubclient/modules/view.py PEPHubView.add_sample   11 5 0   55%
pephubclient/modules/view.py PEPHubView.remove_sample   11 5 0   55%
pephubclient/modules/view.py PEPHubView._build_view_request_url   3 0 0   100%
pephubclient/modules/view.py (no function)   17 0 0   100%
pephubclient/pephub_oauth/__init__.py (no function)   0 0 0   100%
pephubclient/pephub_oauth/const.py (no function)   2 0 0   100%
pephubclient/pephub_oauth/exceptions.py PEPHubResponseException.__init__   1 1 0   0%
pephubclient/pephub_oauth/exceptions.py PEPHubTokenExchangeException.__init__   1 1 0   0%
pephubclient/pephub_oauth/exceptions.py (no function)   4 0 0   100%
pephubclient/pephub_oauth/models.py (no function)   6 0 0   100%
pephubclient/pephub_oauth/pephub_oauth.py PEPHubAuth.login_to_pephub   19 9 0   53%
pephubclient/pephub_oauth/pephub_oauth.py PEPHubAuth._request_pephub_for_device_code   2 0 0   100%
pephubclient/pephub_oauth/pephub_oauth.py PEPHubAuth._exchange_device_code_on_token   3 3 0   0%
pephubclient/pephub_oauth/pephub_oauth.py PEPHubAuth._handle_pephub_response   9 9 0   0%
pephubclient/pephub_oauth/pephub_oauth.py (no function)   16 0 0   100%
pephubclient/pephubclient.py PEPHubClient.__init__   6 0 0   100%
pephubclient/pephubclient.py PEPHubClient.view   1 0 0   100%
pephubclient/pephubclient.py PEPHubClient.sample   1 0 0   100%
pephubclient/pephubclient.py PEPHubClient.schema   1 0 0   100%
pephubclient/pephubclient.py PEPHubClient.login   10 0 0   100%
pephubclient/pephubclient.py PEPHubClient.logout   2 0 0   100%
pephubclient/pephubclient.py PEPHubClient.pull   2 0 0   100%
pephubclient/pephubclient.py PEPHubClient.load_project   3 3 0   0%
pephubclient/pephubclient.py PEPHubClient.push   2 0 0   100%
pephubclient/pephubclient.py PEPHubClient.upload   24 3 0   88%
pephubclient/pephubclient.py PEPHubClient.find_project   14 4 0   71%
pephubclient/pephubclient.py PEPHubClient._load_raw_pep   1 1 0   0%
pephubclient/pephubclient.py PEPHubClient.load_raw_pep   12 0 0   100%
pephubclient/pephubclient.py PEPHubClient._set_registry_data   4 2 0   50%
pephubclient/pephubclient.py PEPHubClient._build_pull_request_url   6 0 0   100%
pephubclient/pephubclient.py PEPHubClient._build_project_search_url   3 0 0   100%
pephubclient/pephubclient.py PEPHubClient._build_push_request_url   1 0 0   100%
pephubclient/pephubclient.py (no function)   39 0 0   100%
pephubclient/schemas/__init__.py (no function)   0 0 0   100%
pephubclient/schemas/constants.py (no function)   8 0 0   100%
pephubclient/schemas/models.py (no function)   45 0 0   100%
pephubclient/schemas/schema.py PEPHubSchema.__init__   1 0 0   100%
pephubclient/schemas/schema.py PEPHubSchema.get   9 5 0   44%
pephubclient/schemas/schema.py PEPHubSchema.get_versions   9 5 0   44%
pephubclient/schemas/schema.py PEPHubSchema.create_schema   9 3 0   67%
pephubclient/schemas/schema.py PEPHubSchema.add_version   9 3 0   67%
pephubclient/schemas/schema.py PEPHubSchema.update_record   13 5 0   62%
pephubclient/schemas/schema.py PEPHubSchema.update_version   13 5 0   62%
pephubclient/schemas/schema.py PEPHubSchema.delete_schema   10 5 0   50%
pephubclient/schemas/schema.py PEPHubSchema.delete_version   10 5 0   50%
pephubclient/schemas/schema.py (no function)   18 0 0   100%
tests/__init__.py (no function)   0 0 0   100%
tests/conftest.py device_code_return   2 0 0   100%
tests/conftest.py test_raw_pep_return   2 0 0   100%
tests/conftest.py requests_get_mock   1 1 0   0%
tests/conftest.py input_return_mock   1 1 0   0%
tests/conftest.py test_jwt   1 0 0   100%
tests/conftest.py (no function)   12 0 0   100%
tests/test_manual.py TestViewsManual.test_get   2 2 0   0%
tests/test_manual.py TestViewsManual.test_create   1 1 0   0%
tests/test_manual.py TestViewsManual.test_delete   1 1 0   0%
tests/test_manual.py TestViewsManual.test_add_sample   1 1 0   0%
tests/test_manual.py TestViewsManual.test_delete_sample   1 1 0   0%
tests/test_manual.py TestSamplesManual.test_manual   2 2 0   0%
tests/test_manual.py TestSamplesManual.test_update   4 4 0   0%
tests/test_manual.py TestSamplesManual.test_add   2 2 0   0%
tests/test_manual.py TestSamplesManual.test_delete   1 1 0   0%
tests/test_manual.py (no function)   15 0 0   100%
tests/test_pephubclient.py TestSmoke.test_login   9 0 0   100%
tests/test_pephubclient.py TestSmoke.test_login_with_token_skips_device_flow   7 0 0   100%
tests/test_pephubclient.py TestSmoke.test_login_url_passed_to_device_flow   4 0 0   100%
tests/test_pephubclient.py TestSmoke.test_logout   3 0 0   100%
tests/test_pephubclient.py TestSmoke.test_pull   11 0 0   100%
tests/test_pephubclient.py TestSmoke.test_pull_with_pephub_error_response   5 0 0   100%
tests/test_pephubclient.py TestSmoke.test_push   3 0 0   100%
tests/test_pephubclient.py TestSmoke.test_push_with_pephub_error_response   3 0 0   100%
tests/test_pephubclient.py TestSmoke.test_search_prj   6 0 0   100%
tests/test_pephubclient.py TestHelpers.test_is_registry_path   1 0 0   100%
tests/test_pephubclient.py TestSamples.test_get   5 0 0   100%
tests/test_pephubclient.py TestSamples.test_sample_get_with_pephub_error_response   3 0 0   100%
tests/test_pephubclient.py TestSamples.test_create   4 0 0   100%
tests/test_pephubclient.py TestSamples.test_sample_create_with_pephub_error_response   3 0 0   100%
tests/test_pephubclient.py TestSamples.test_delete   3 0 0   100%
tests/test_pephubclient.py TestSamples.test_sample_delete_with_pephub_error_response   3 0 0   100%
tests/test_pephubclient.py TestSamples.test_update   3 0 0   100%
tests/test_pephubclient.py TestSamples.test_sample_update_with_pephub_error_response   3 0 0   100%
tests/test_pephubclient.py TestViews.test_get   5 0 0   100%
tests/test_pephubclient.py TestViews.test_view_get_with_pephub_error_response   3 0 0   100%
tests/test_pephubclient.py TestViews.test_create   3 0 0   100%
tests/test_pephubclient.py TestViews.test_view_create_with_pephub_error_response   3 0 0   100%
tests/test_pephubclient.py TestViews.test_delete   3 0 0   100%
tests/test_pephubclient.py TestViews.test_view_delete_with_pephub_error_response   3 0 0   100%
tests/test_pephubclient.py TestViews.test_add_sample   3 0 0   100%
tests/test_pephubclient.py TestViews.test_delete_sample   3 0 0   100%
tests/test_pephubclient.py (no function)   49 0 0   100%
tests/test_schemas.py TestSchemas.test_get_schema   8 0 0   100%
tests/test_schemas.py TestSchemas.test_get_schema_versions   8 0 0   100%
tests/test_schemas.py TestSchemas.test_create_schema   6 0 0   100%
tests/test_schemas.py TestSchemas.test_update_schema   6 0 0   100%
tests/test_schemas.py TestSchemas.test_delete_schema   6 0 0   100%
tests/test_schemas.py TestSchemas.test_add_version   6 0 0   100%
tests/test_schemas.py TestSchemas.test_update_version   6 0 0   100%
tests/test_schemas.py TestSchemas.test_delete_version   6 0 0   100%
tests/test_schemas.py (no function)   14 0 0   100%
Total     1087 203 0   81%

No items found using the specified filter.