Coverage report: 54%

Files Functions Classes

coverage.py v7.6.4, created at 2024-11-22 07:31 +0000

File function statements missing excluded coverage
yaptide/__init__.py (no function) 0 0 0 100%
yaptide/admin/__init__.py (no function) 0 0 0 100%
yaptide/admin/db_manage.py connect_to_db 16 16 0 0%
yaptide/admin/db_manage.py user_exists 6 6 0 0%
yaptide/admin/db_manage.py run 0 0 0 100%
yaptide/admin/db_manage.py list_users 7 7 0 0%
yaptide/admin/db_manage.py add_user 18 18 0 0%
yaptide/admin/db_manage.py update_user 15 15 0 0%
yaptide/admin/db_manage.py remove_user 10 10 0 0%
yaptide/admin/db_manage.py list_tasks 27 27 0 0%
yaptide/admin/db_manage.py remove_task 14 14 0 0%
yaptide/admin/db_manage.py list_simulations 21 21 0 0%
yaptide/admin/db_manage.py remove_simulation 13 13 0 0%
yaptide/admin/db_manage.py add_cluster 11 11 0 0%
yaptide/admin/db_manage.py list_clusters 6 6 0 0%
yaptide/admin/db_manage.py (no function) 64 1 0 98%
yaptide/admin/simulator_storage.py extract_shieldhit_from_tar_gz 8 8 0 0%
yaptide/admin/simulator_storage.py extract_shieldhit_from_zip 11 11 0 0%
yaptide/admin/simulator_storage.py download_shieldhit_demo_version 18 18 0 0%
yaptide/admin/simulator_storage.py check_if_s3_connection_is_working 12 9 0 25%
yaptide/admin/simulator_storage.py download_shieldhit_from_s3 10 3 0 70%
yaptide/admin/simulator_storage.py download_shieldhit_from_s3_or_from_website 8 5 0 38%
yaptide/admin/simulator_storage.py download_topas_from_s3 63 63 0 0%
yaptide/admin/simulator_storage.py extract_fluka_from_tar_gz 10 10 0 0%
yaptide/admin/simulator_storage.py download_fluka_from_s3 12 12 0 0%
yaptide/admin/simulator_storage.py upload_file_to_s3 18 18 0 0%
yaptide/admin/simulator_storage.py encrypt_file 5 0 0 100%
yaptide/admin/simulator_storage.py decrypt_file 9 3 0 67%
yaptide/admin/simulator_storage.py validate_connection_data 20 12 0 40%
yaptide/admin/simulator_storage.py download_file 22 9 0 59%
yaptide/admin/simulator_storage.py derive_key 3 0 0 100%
yaptide/admin/simulator_storage.py (no function) 35 0 0 100%
yaptide/admin/simulators.py run 0 0 0 100%
yaptide/admin/simulators.py s3credentials 2 0 0 100%
yaptide/admin/simulators.py s3credentials.decorator 6 0 0 100%
yaptide/admin/simulators.py s3credentials.decorator.wrapper 1 1 0 0%
yaptide/admin/simulators.py encryption_options 2 0 0 100%
yaptide/admin/simulators.py encryption_options.decorator 5 0 0 100%
yaptide/admin/simulators.py encryption_options.decorator.wrapper 1 1 0 0%
yaptide/admin/simulators.py encrypt 4 4 0 0%
yaptide/admin/simulators.py decrypt 4 4 0 0%
yaptide/admin/simulators.py download_fluka 5 5 0 0%
yaptide/admin/simulators.py download_topas 5 5 0 0%
yaptide/admin/simulators.py download_shieldhit 2 2 0 0%
yaptide/admin/simulators.py upload 4 4 0 0%
yaptide/admin/simulators.py (no function) 70 4 0 94%
yaptide/application.py create_app 27 4 0 85%
yaptide/application.py (no function) 11 1 0 91%
yaptide/batch/__init__.py (no function) 0 0 0 100%
yaptide/batch/batch_methods.py get_user 9 9 0 0%
yaptide/batch/batch_methods.py get_cluster 8 8 0 0%
yaptide/batch/batch_methods.py get_connection 4 4 0 0%
yaptide/batch/batch_methods.py post_update 2 2 0 0%
yaptide/batch/batch_methods.py submit_job 77 77 0 0%
yaptide/batch/batch_methods.py prepare_script_files 18 18 0 0%
yaptide/batch/batch_methods.py get_job_status 20 20 0 0%
yaptide/batch/batch_methods.py get_job_results 19 19 0 0%
yaptide/batch/batch_methods.py delete_job 12 12 0 0%
yaptide/batch/batch_methods.py (no function) 30 0 0 100%
yaptide/batch/result_sender.py send_simulation_results 21 21 0 0%
yaptide/batch/result_sender.py (no function) 22 22 0 0%
yaptide/batch/string_templates.py (no function) 3 0 0 100%
yaptide/batch/utils/__init__.py (no function) 0 0 0 100%
yaptide/batch/utils/utils.py sanitize_string 1 1 0 0%
yaptide/batch/utils/utils.py extract_sbatch_header 1 1 0 0%
yaptide/batch/utils/utils.py convert_dict_to_sbatch_options 7 7 0 0%
yaptide/batch/utils/utils.py (no function) 4 0 0 100%
yaptide/batch/watcher.py log_generator 15 15 0 0%
yaptide/batch/watcher.py send_task_update 18 18 0 0%
yaptide/batch/watcher.py read_file 49 49 0 0%
yaptide/batch/watcher.py (no function) 39 19 0 51%
yaptide/celery/__init__.py (no function) 0 0 0 100%
yaptide/celery/simulation_worker.py (no function) 2 0 0 100%
yaptide/celery/tasks.py convert_input_files 2 2 0 0%
yaptide/celery/tasks.py run_single_simulation 25 0 0 100%
yaptide/celery/tasks.py run_single_simulation_for_shieldhit 18 0 0 100%
yaptide/celery/tasks.py run_single_simulation_for_fluka 16 4 0 75%
yaptide/celery/tasks.py merge_results 25 3 0 88%
yaptide/celery/tasks.py monitor_shieldhit 9 0 0 100%
yaptide/celery/tasks.py monitor_fluka 9 5 0 44%
yaptide/celery/tasks.py (no function) 35 0 0 100%
yaptide/celery/utils/__init__.py (no function) 0 0 0 100%
yaptide/celery/utils/manage_tasks.py run_job 7 0 0 100%
yaptide/celery/utils/manage_tasks.py get_task_status 8 8 0 0%
yaptide/celery/utils/manage_tasks.py get_job_status 2 2 0 0%
yaptide/celery/utils/manage_tasks.py get_job_results 4 4 0 0%
yaptide/celery/utils/manage_tasks.py translate_celery_state_naming 11 11 0 0%
yaptide/celery/utils/manage_tasks.py (no function) 11 0 0 100%
yaptide/celery/utils/progress/__init__.py (no function) 0 0 0 100%
yaptide/celery/utils/progress/fluka_monitor.py parse_progress_remaining_line 8 8 0 0%
yaptide/celery/utils/progress/fluka_monitor.py time_now_utc 1 1 0 0%
yaptide/celery/utils/progress/fluka_monitor.py utc_without_offset 1 1 0 0%
yaptide/celery/utils/progress/fluka_monitor.py check_progress 15 15 0 0%
yaptide/celery/utils/progress/fluka_monitor.py read_fluka_out_file 34 34 0 0%
yaptide/celery/utils/progress/fluka_monitor.py (no function) 31 0 0 100%
yaptide/celery/utils/pymc.py get_tmp_dir 12 0 0 100%
yaptide/celery/utils/pymc.py command_to_run_shieldhit 5 0 0 100%
yaptide/celery/utils/pymc.py get_shieldhit_estimators 12 0 0 100%
yaptide/celery/utils/pymc.py command_to_run_fluka 9 2 0 78%
yaptide/celery/utils/pymc.py update_rng_seed_in_fluka_file 5 0 0 100%
yaptide/celery/utils/pymc.py update_rng_seed_in_fluka_file.UpdateFlukaRandomSeed.__call__ 0 0 0 100%
yaptide/celery/utils/pymc.py execute_simulation_subprocess 18 3 0 83%
yaptide/celery/utils/pymc.py get_fluka_estimators 14 2 0 86%
yaptide/celery/utils/pymc.py average_values 1 0 0 100%
yaptide/celery/utils/pymc.py average_estimators 11 1 0 91%
yaptide/celery/utils/pymc.py read_file 66 54 0 18%
yaptide/celery/utils/pymc.py read_fluka_file 25 25 0 0%
yaptide/celery/utils/pymc.py read_fluka_file.get_first_matching_file 2 2 0 0%
yaptide/celery/utils/pymc.py read_file_offline 17 2 0 88%
yaptide/celery/utils/pymc.py (no function) 29 0 0 100%
yaptide/celery/utils/requests.py send_task_update 15 5 0 67%
yaptide/celery/utils/requests.py send_simulation_results 14 4 0 71%
yaptide/celery/utils/requests.py send_simulation_logfiles 11 11 0 0%
yaptide/celery/utils/requests.py (no function) 6 0 0 100%
yaptide/persistence/__init__.py (no function) 0 0 0 100%
yaptide/persistence/database.py (no function) 4 0 0 100%
yaptide/persistence/db_methods.py add_object_to_db 3 0 0 100%
yaptide/persistence/db_methods.py delete_object_from_db 3 0 0 100%
yaptide/persistence/db_methods.py make_commit_to_db 1 0 0 100%
yaptide/persistence/db_methods.py fetch_user_by_id 3 0 0 100%
yaptide/persistence/db_methods.py fetch_yaptide_user_by_username 2 0 0 100%
yaptide/persistence/db_methods.py fetch_keycloak_user_by_username 2 2 0 0%
yaptide/persistence/db_methods.py fetch_simulation_by_job_id 3 0 0 100%
yaptide/persistence/db_methods.py fetch_simulation_id_by_job_id 2 0 0 100%
yaptide/persistence/db_methods.py fetch_celery_simulation_by_job_id 2 2 0 0%
yaptide/persistence/db_methods.py fetch_batch_simulation_by_job_id 2 2 0 0%
yaptide/persistence/db_methods.py fetch_simulation_by_sim_id 3 3 0 0%
yaptide/persistence/db_methods.py fetch_simulations_by_user_id 3 3 0 0%
yaptide/persistence/db_methods.py fetch_task_by_sim_id_and_task_id 3 3 0 0%
yaptide/persistence/db_methods.py fetch_tasks_by_sim_id 3 0 0 100%
yaptide/persistence/db_methods.py fetch_celery_tasks_by_sim_id 2 2 0 0%
yaptide/persistence/db_methods.py fetch_batch_tasks_by_sim_id 2 2 0 0%
yaptide/persistence/db_methods.py fetch_estimators_by_sim_id 2 0 0 100%
yaptide/persistence/db_methods.py fetch_estimator_names_by_job_id 6 1 0 83%
yaptide/persistence/db_methods.py fetch_estimator_by_sim_id_and_est_name 2 0 0 100%
yaptide/persistence/db_methods.py fetch_pages_by_estimator_id 2 0 0 100%
yaptide/persistence/db_methods.py fetch_page_by_est_id_and_page_number 2 2 0 0%
yaptide/persistence/db_methods.py fetch_all_clusters 2 2 0 0%
yaptide/persistence/db_methods.py fetch_cluster_by_id 2 2 0 0%
yaptide/persistence/db_methods.py fetch_input_by_sim_id 2 0 0 100%
yaptide/persistence/db_methods.py fetch_logfiles_by_sim_id 2 0 0 100%
yaptide/persistence/db_methods.py update_task_state 2 2 0 0%
yaptide/persistence/db_methods.py update_simulation_state 3 0 0 100%
yaptide/persistence/db_methods.py (no function) 32 0 0 100%
yaptide/persistence/models.py UserModel.__repr__ 1 1 0 0%
yaptide/persistence/models.py YaptideUserModel.set_password 1 0 0 100%
yaptide/persistence/models.py YaptideUserModel.check_password 1 0 0 100%
yaptide/persistence/models.py SimulationModel.update_state 10 3 0 70%
yaptide/persistence/models.py BatchSimulationModel.update_state 11 11 0 0%
yaptide/persistence/models.py allowed_state_change 1 0 0 100%
yaptide/persistence/models.py value_changed 1 0 0 100%
yaptide/persistence/models.py TaskModel.update_state 20 3 0 85%
yaptide/persistence/models.py TaskModel.get_status_dict 8 2 0 75%
yaptide/persistence/models.py CeleryTaskModel.update_state 3 0 0 100%
yaptide/persistence/models.py decompress 5 0 0 100%
yaptide/persistence/models.py compress 6 0 0 100%
yaptide/persistence/models.py InputModel.data 1 0 0 100%
yaptide/persistence/models.py InputModel.data 2 0 0 100%
yaptide/persistence/models.py EstimatorModel.data 1 0 0 100%
yaptide/persistence/models.py EstimatorModel.data 2 0 0 100%
yaptide/persistence/models.py PageModel.data 1 0 0 100%
yaptide/persistence/models.py PageModel.data 2 0 0 100%
yaptide/persistence/models.py LogfilesModel.data 1 1 0 0%
yaptide/persistence/models.py LogfilesModel.data 2 2 0 0%
yaptide/persistence/models.py create_all 1 0 0 100%
yaptide/persistence/models.py (no function) 139 0 0 100%
yaptide/routes/__init__.py (no function) 0 0 0 100%
yaptide/routes/auth_routes.py AuthRegister.put 15 5 0 67%
yaptide/routes/auth_routes.py AuthLogIn.post 22 7 0 68%
yaptide/routes/auth_routes.py AuthRefresh.get 4 4 0 0%
yaptide/routes/auth_routes.py AuthStatus.get 1 0 0 100%
yaptide/routes/auth_routes.py AuthLogOut.delete 4 0 0 100%
yaptide/routes/auth_routes.py (no function) 29 0 0 100%
yaptide/routes/batch_routes.py JobsBatch.post 35 35 0 0%
yaptide/routes/batch_routes.py JobsBatch.get 22 22 0 0%
yaptide/routes/batch_routes.py JobsBatch.delete 23 23 0 0%
yaptide/routes/batch_routes.py Clusters.get 5 5 0 0%
yaptide/routes/batch_routes.py (no function) 29 0 0 100%
yaptide/routes/celery_routes.py JobsDirect.post 29 4 0 86%
yaptide/routes/celery_routes.py JobsDirect.get 25 25 0 0%
yaptide/routes/celery_routes.py JobsDirect.delete 22 22 0 0%
yaptide/routes/celery_routes.py ResultsDirect.get 34 34 0 0%
yaptide/routes/celery_routes.py ConvertResource.post 6 6 0 0%
yaptide/routes/celery_routes.py (no function) 40 0 0 100%
yaptide/routes/common_sim_routes.py JobsResource.get 27 4 0 85%
yaptide/routes/common_sim_routes.py JobsResource.post 13 13 0 0%
yaptide/routes/common_sim_routes.py get_single_estimator 6 0 0 100%
yaptide/routes/common_sim_routes.py get_all_estimators 9 1 0 89%
yaptide/routes/common_sim_routes.py ResultsResource.post 30 30 0 0%
yaptide/routes/common_sim_routes.py ResultsResource.get 16 3 0 81%
yaptide/routes/common_sim_routes.py InputsResource.get 14 3 0 79%
yaptide/routes/common_sim_routes.py LogfilesResource.post 14 14 0 0%
yaptide/routes/common_sim_routes.py LogfilesResource.get 15 4 0 73%
yaptide/routes/common_sim_routes.py (no function) 47 0 0 100%
yaptide/routes/estimator_routes.py EstimatorResource.get 13 2 0 85%
yaptide/routes/estimator_routes.py (no function) 14 0 0 100%
yaptide/routes/keycloak_routes.py check_user_based_on_keycloak_token 33 16 0 52%
yaptide/routes/keycloak_routes.py AuthKeycloak.post 35 35 0 0%
yaptide/routes/keycloak_routes.py AuthKeycloak.delete 3 3 0 0%
yaptide/routes/keycloak_routes.py (no function) 20 0 0 100%
yaptide/routes/main_routes.py HelloWorld.get 1 0 0 100%
yaptide/routes/main_routes.py initialize_routes 19 0 0 100%
yaptide/routes/main_routes.py (no function) 14 0 0 100%
yaptide/routes/task_routes.py TasksResource.post 17 17 0 0%
yaptide/routes/task_routes.py (no function) 8 0 0 100%
yaptide/routes/user_routes.py UserSimulations.get 9 0 0 100%
yaptide/routes/user_routes.py UserSimulations.delete 15 2 0 87%
yaptide/routes/user_routes.py UserUpdate.post 4 4 0 0%
yaptide/routes/user_routes.py (no function) 37 0 0 100%
yaptide/routes/utils/__init__.py (no function) 0 0 0 100%
yaptide/routes/utils/decorators.py requires_auth 2 0 0 100%
yaptide/routes/utils/decorators.py requires_auth.decorator 3 0 0 100%
yaptide/routes/utils/decorators.py requires_auth.decorator.wrapper 12 4 0 67%
yaptide/routes/utils/decorators.py (no function) 7 0 0 100%
yaptide/routes/utils/response_templates.py yaptide_response 4 0 0 100%
yaptide/routes/utils/response_templates.py error_validation_response 1 1 0 0%
yaptide/routes/utils/response_templates.py error_internal_response 1 1 0 0%
yaptide/routes/utils/response_templates.py (no function) 5 0 0 100%
yaptide/routes/utils/tokens.py encode_auth_token 11 2 0 82%
yaptide/routes/utils/tokens.py encode_simulation_auth_token 7 2 0 71%
yaptide/routes/utils/tokens.py decode_auth_token 10 5 0 50%
yaptide/routes/utils/tokens.py (no function) 13 0 0 100%
yaptide/routes/utils/utils.py check_if_job_is_owned_and_exist 6 1 0 83%
yaptide/routes/utils/utils.py determine_input_type 9 3 0 67%
yaptide/routes/utils/utils.py make_input_dict 8 0 0 100%
yaptide/routes/utils/utils.py (no function) 8 0 0 100%
yaptide/settings.py (no function) 3 3 0 0%
yaptide/utils/__init__.py (no function) 0 0 0 100%
yaptide/utils/enums.py (no function) 33 0 0 100%
yaptide/utils/helper_tasks.py terminate_unfinished_tasks 7 7 0 0%
yaptide/utils/helper_tasks.py get_tasks_from_celery 12 12 0 0%
yaptide/utils/helper_tasks.py (no function) 5 0 0 100%
yaptide/utils/helper_worker.py (no function) 2 0 0 100%
yaptide/utils/sim_utils.py estimators_to_list 12 1 0 92%
yaptide/utils/sim_utils.py get_json_type 3 0 0 100%
yaptide/utils/sim_utils.py convert_editor_dict_to_files_dict 3 0 0 100%
yaptide/utils/sim_utils.py check_and_convert_payload_to_files_dict 6 1 0 83%
yaptide/utils/sim_utils.py adjust_primaries_in_editor_dict 7 1 0 86%
yaptide/utils/sim_utils.py adjust_primaries_in_files_dict 9 2 0 78%
yaptide/utils/sim_utils.py adjust_primaries_for_shieldhit_files 15 2 0 87%
yaptide/utils/sim_utils.py adjust_primaries_for_fluka_files 20 1 0 95%
yaptide/utils/sim_utils.py files_dict_with_adjusted_primaries 9 1 0 89%
yaptide/utils/sim_utils.py write_simulation_input_files 3 0 0 100%
yaptide/utils/sim_utils.py simulation_logfiles 8 5 0 38%
yaptide/utils/sim_utils.py simulation_input_files 9 9 0 0%
yaptide/utils/sim_utils.py (no function) 26 0 0 100%
Total   2965 1370 0 54%

No items found using the specified filter.