diff --git a/gen/tests_generator.py b/gen/tests_generator.py index 7fcfa7e..7fbdaf4 100644 --- a/gen/tests_generator.py +++ b/gen/tests_generator.py @@ -1,4 +1,5 @@ import os +import re import shutil from importlib import import_module @@ -22,6 +23,22 @@ 'list[str] | None': '["text"]' } +IMPORT_TEMPLATE_1 = '\n'.join([ + "from {module_path} import {class_name}", + "\n", +]) + +UNIT_TEST_TEMPLATE_1 = '\n'.join([ + "def test_{module}_{method_name}({module}_api_server, {module}_client_{version}: {class_name}):", + "{indent}{module}_client_{version}.{method_name}(" +]) + + +UNIT_TEST_TEMPLATE_2 = '\n'.join([ + "def test_{module}_{method_name}({module}_api_server, {module}_client: {class_name}):", + "{indent}{module}_client.{method_name}(" +]) + def create_conftest(module_path: str, name: str): module = import_module(f"osdu_client.services.{name.lower()}") @@ -80,6 +97,12 @@ def create_conftest(module_path: str, name: str): file.write(line+"\n") +def gather_implemented_method_tests(tests_path: str): + tests_content = open(tests_path).read() + result = re.findall('def test_(.*)\(', tests_content) + return set(result) + + def create_tests( name: str, tests_path: str, @@ -96,21 +119,17 @@ def create_tests( getattr(client_class, method_name), "__annotations__" ) and method_name not in ("__init__") and getattr(client_class, method_name).__class__.__name__ == "function" ] - import_template = '\n'.join([ - "from {module_path} import {class_name}", - "\n", - ]) - test_template = '\n'.join([ - "def test_{module}_{method_name}({module}_api_server, {module}_client_{version}: {class_name}):", - "{indent}{module}_client_{version}.{method_name}(" - ]) + versioned_tests_path = tests_path.replace(name.lower()+".py", f"{name.lower()}_{version}.py") - with open(versioned_tests_path, "w") as f: - _import = import_template.format(module=name, class_name=client_class.__name__, - module_path=client_class.__module__) + implemented_tests = gather_implemented_method_tests(versioned_tests_path) + with open(versioned_tests_path, "a") as f: + _import = IMPORT_TEMPLATE_1.format(module=name, class_name=client_class.__name__, + module_path=client_class.__module__) f.write(_import) for method in methods: - test = test_template.format( + if method in implemented_tests: + continue + test = UNIT_TEST_TEMPLATE_1.format( module=name.lower(), class_name=client_class.__name__, method_name=method.__name__, @@ -132,22 +151,16 @@ def create_tests( getattr(client_class, method_name), "__annotations__" ) and method_name not in ("__init__") and getattr(client_class, method_name).__class__.__name__ == "function" ] + implemented_tests = gather_implemented_method_tests(tests_path) - import_template = '\n'.join([ - "from {module_path} import {class_name}", - "\n", - ]) - test_template = '\n'.join([ - "def test_{module}_{method_name}({module}_api_server, {module}_client: {class_name}):", - "{indent}{module}_client.{method_name}(" - ]) - - with open(tests_path, "w") as f: - _import = import_template.format(module=name, class_name=client_class.__name__, + with open(tests_path, "a") as f: + _import = IMPORT_TEMPLATE_1.format(module=name, class_name=client_class.__name__, module_path=client_class.__module__) f.write(_import) for method in methods: - test = test_template.format( + if method in implemented_tests: + continue + test = UNIT_TEST_TEMPLATE_2.format( module=name.lower(), class_name=client_class.__name__, method_name=method.__name__, diff --git a/tests/rafs/conftest.py b/tests/rafs/conftest.py index b065d3e..50485b1 100644 --- a/tests/rafs/conftest.py +++ b/tests/rafs/conftest.py @@ -1,11 +1,10 @@ -import os - import pytest -import requests_mock - +import os +from tests.utils import create_swagger_server from osdu_client.auth import AuthBackendInterface from osdu_client.client import OSDUAPI, OSDUAPIClient -from tests.utils import create_swagger_server +import requests_mock + BASE_DIR = os.path.dirname(__file__) diff --git a/tests/rafs/test_rafs_v1.py b/tests/rafs/test_rafs_v1.py index 2dd5f49..6391bc6 100644 --- a/tests/rafs/test_rafs_v1.py +++ b/tests/rafs/test_rafs_v1.py @@ -1364,3 +1364,1368 @@ def test_rafs_upload_wgrp_data(rafs_api_server, rafs_client_v1: RAFSClient): data_partition_id="text", ) +from osdu_client.services.rafs.v1 import RAFSClient + +def test_rafs_create_or_update_cce_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_cce_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_compositionalanalysis_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_compositionalanalysis_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_coring_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_coring_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_cp_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_cp_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_cvdt_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_cvdt_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_difflib_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_difflib_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_ep_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_ep_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_er_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_er_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_fri_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_fri_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_ft_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_ft_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_itt_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_itt_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_mcmt_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_mcmt_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_physchem_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_physchem_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_pvt_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_pvt_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_rc_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_rc_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_rock_sample_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_rock_sample_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_rp_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_rp_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_sar_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_sar_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_stoat_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_stoat_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_stt_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_stt_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_swellingtests_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_swellingtests_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_transporttest_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_transporttest_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_vlet_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_vlet_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_wat_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_wat_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_wgrp_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_or_update_wgrp_records( + data_partition_id="text", + ) + +def test_rafs_create_rock_sample_analysis_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.create_rock_sample_analysis_record( + data_partition_id="text", + ) + +def test_rafs_get_cce_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cce_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_cce_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cce_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_cce_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cce_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_cce_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cce_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_cce_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cce_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_compositionalanalysis_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_compositionalanalysis_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_compositionalanalysis_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_compositionalanalysis_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_compositionalanalysis_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_compositionalanalysis_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_compositionalanalysis_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_compositionalanalysis_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_compositionalanalysis_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_compositionalanalysis_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_coring_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_coring_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_cp_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cp_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_cp_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cp_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_cp_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cp_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_cp_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cp_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_cp_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cp_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_cvdt_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cvdt_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_cvdt_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cvdt_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_cvdt_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cvdt_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_cvdt_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cvdt_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_cvdt_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_cvdt_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_difflib_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_difflib_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_difflib_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_difflib_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_difflib_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_difflib_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_difflib_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_difflib_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_difflib_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_difflib_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_ep_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_ep_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_ep_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_ep_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_ep_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_ep_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_ep_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_ep_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_ep_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_ep_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_et_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_et_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_et_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_et_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_et_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_et_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_et_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_et_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_et_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_et_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_fri_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_fri_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_fri_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_fri_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_fri_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_fri_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_fri_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_fri_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_fri_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_fri_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_ft_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_ft_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_ft_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_ft_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_ft_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_ft_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_ft_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_ft_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_ft_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_ft_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_info(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_info( + data_partition_id="text", + ) + +def test_rafs_get_itt_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_itt_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_itt_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_itt_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_itt_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_itt_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_itt_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_itt_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_itt_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_itt_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_mcmt_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_mcmt_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_mcmt_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_mcmt_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_mcmt_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_mcmt_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_mcmt_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_mcmt_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_mcmt_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_mcmt_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_metrics(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_metrics( + data_partition_id="text", + ) + +def test_rafs_get_multistageseparatortests_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_multistageseparatortests_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_multistageseparatortests_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_multistageseparatortests_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_multistageseparatortests_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_multistageseparatortests_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_multistageseparatortests_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_multistageseparatortests_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_multistageseparatortests_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_multistageseparatortests_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_physchem_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_physchem_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_physchem_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_physchem_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_physchem_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_physchem_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_physchem_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_physchem_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_pvt_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_pvt_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_pvt_record_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_pvt_record_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_pvt_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_pvt_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_pvt_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_pvt_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_rc_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rc_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_rc_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rc_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_rc_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rc_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_rc_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rc_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_record_coring_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_record_coring_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_record_coring_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_record_coring_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_record_physchem_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_record_physchem_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_record_rc_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_record_rc_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_record_rock_sample_analysis_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_record_rock_sample_analysis_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_record_rock_sample_analysis_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_record_rock_sample_analysis_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_record_sar_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_record_sar_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_record_stoat_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_record_stoat_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_rock_sample_analysis_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rock_sample_analysis_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_rock_sample_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rock_sample_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_rock_sample_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rock_sample_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_rock_sample_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rock_sample_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_rock_sample_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rock_sample_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_rock_sample_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rock_sample_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_rp_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rp_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_rp_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rp_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_rp_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rp_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_rp_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rp_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_rp_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_rp_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_sar_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_sar_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_sar_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_sar_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_sar_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_sar_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_stoat_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_stoat_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_stoat_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_stoat_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_stoat_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_stoat_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_stoat_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_stoat_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_stt_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_stt_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_stt_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_stt_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_stt_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_stt_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_stt_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_stt_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_stt_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_stt_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_swellingtests_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_swellingtests_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_swellingtests_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_swellingtests_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_swellingtests_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_swellingtests_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_swellingtests_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_swellingtests_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_swellingtests_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_swellingtests_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_transporttest_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_transporttest_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_transporttest_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_transporttest_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_transporttest_record_specific_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_transporttest_record_specific_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_transporttest_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_transporttest_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_transporttest_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_transporttest_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_vlet_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_vlet_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_vlet_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_vlet_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_vlet_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_vlet_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_vlet_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_vlet_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_vlet_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_vlet_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_wat_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_wat_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_wat_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_wat_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_wat_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_wat_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_wat_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_wat_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_wat_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_wat_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_get_wgrp_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_wgrp_data( + record_id="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_wgrp_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_wgrp_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_wgrp_record_version(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_wgrp_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_wgrp_record_versions(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_wgrp_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_wgrp_source_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.get_wgrp_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_post_multistageseparatortests_records(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.post_multistageseparatortests_records( + data_partition_id="text", + ) + +def test_rafs_soft_delete_cce_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_cce_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_compositionalanalysis_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_compositionalanalysis_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_coring_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_coring_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_cp_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_cp_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_cvdt_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_cvdt_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_difflib_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_difflib_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_ep_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_ep_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_et_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_et_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_fri_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_fri_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_ft_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_ft_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_itt_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_itt_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_mcmt_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_mcmt_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_multistageseparatortests_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_multistageseparatortests_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_physchem_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_physchem_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_pvt_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_pvt_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_rc_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_rc_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_rock_sample_analysis_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_rock_sample_analysis_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_rock_sample_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_rock_sample_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_rp_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_rp_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_sar_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_sar_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_stoat_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_stoat_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_stt_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_stt_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_swellingtests_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_swellingtests_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_transporttest_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_transporttest_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_vlet_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_vlet_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_wat_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_wat_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_wgrp_record(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.soft_delete_wgrp_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_cce_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_cce_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_compositionalanalysis_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_compositionalanalysis_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_cp_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_cp_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_cvdt_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_cvdt_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_difflib_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_difflib_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_ep_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_ep_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_et_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_et_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_fri_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_fri_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_ft_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_ft_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_itt_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_itt_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_mcmt_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_mcmt_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_multistageseparatortests_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_multistageseparatortests_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_physchem_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_physchem_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_rc_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_rc_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_rock_sample_analysis_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_rock_sample_analysis_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_rp_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_rp_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_stoat_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_stoat_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_stt_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_stt_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_swellingtests_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_swellingtests_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_transporttest_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_transporttest_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_vlet_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_vlet_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_wat_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_wat_data( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_wgrp_data(rafs_api_server, rafs_client_v1: RAFSClient): + rafs_client_v1.upload_wgrp_data( + record_id="text", + data_partition_id="text", + ) + diff --git a/tests/rafs/test_rafs_v2.py b/tests/rafs/test_rafs_v2.py index 25c3132..37440a7 100644 --- a/tests/rafs/test_rafs_v2.py +++ b/tests/rafs/test_rafs_v2.py @@ -203,3 +203,207 @@ def test_rafs_upload_sa_data(rafs_api_server, rafs_client_v2: RAFSClient): data_partition_id="text", ) +from osdu_client.services.rafs.v2 import RAFSClient + +def test_rafs_create_or_update_masterdata_records(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.create_or_update_masterdata_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_pvt_records(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.create_or_update_pvt_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_sa_records(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.create_or_update_sa_records( + data_partition_id="text", + ) + +def test_rafs_create_or_update_sar_records(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.create_or_update_sar_records( + data_partition_id="text", + ) + +def test_rafs_get_info(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_info( + data_partition_id="text", + ) + +def test_rafs_get_masterdata_record(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_masterdata_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_masterdata_record_version(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_masterdata_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_masterdata_record_versions(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_masterdata_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_metrics(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_metrics( + data_partition_id="text", + ) + +def test_rafs_get_pvt_data(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_pvt_data( + record_id="text", + analysis_type="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_pvt_record(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_pvt_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_pvt_record_version(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_pvt_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_pvt_record_versions(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_pvt_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_sa_content_schema(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_sa_content_schema( + analysistype="text", + data_partition_id="text", + ) + +def test_rafs_get_sa_data(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_sa_data( + record_id="text", + analysis_type="text", + dataset_id="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_get_sa_record(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_sa_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_sa_record_version(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_sa_record_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_sa_record_versions(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_sa_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_sa_types(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_sa_types( + data_partition_id="text", + ) + +def test_rafs_get_sar_record(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_sar_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_sar_record_specific_version(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_sar_record_specific_version( + version="text", + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_sar_record_versions(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_sar_record_versions( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_get_sar_source_data(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.get_sar_source_data( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_rafs_query_sa(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.query_sa( + analysis_type="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_search_sa_data(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.search_sa_data( + analysis_type="text", + columns_filter="text", + rows_filter="text", + columns_aggregation="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_masterdata_record(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.soft_delete_masterdata_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_pvt_record(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.soft_delete_pvt_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_sa_record(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.soft_delete_sa_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_soft_delete_sar_record(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.soft_delete_sar_record( + record_id="text", + data_partition_id="text", + ) + +def test_rafs_upload_pvt_data(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.upload_pvt_data( + record_id="text", + analysis_type="text", + data_partition_id="text", + ) + +def test_rafs_upload_sa_data(rafs_api_server, rafs_client_v2: RAFSClient): + rafs_client_v2.upload_sa_data( + record_id="text", + analysis_type="text", + data_partition_id="text", + ) + diff --git a/tests/wellbore/conftest.py b/tests/wellbore/conftest.py index 98cff6b..2d9e37e 100644 --- a/tests/wellbore/conftest.py +++ b/tests/wellbore/conftest.py @@ -1,11 +1,10 @@ -import os - import pytest -import requests_mock - +import os +from tests.utils import create_swagger_server from osdu_client.auth import AuthBackendInterface from osdu_client.client import OSDUAPI, OSDUAPIClient -from tests.utils import create_swagger_server +import requests_mock + BASE_DIR = os.path.dirname(__file__) diff --git a/tests/wellbore/test_wellbore_v2.py b/tests/wellbore/test_wellbore_v2.py index 55ea2ac..5d82092 100644 --- a/tests/wellbore/test_wellbore_v2.py +++ b/tests/wellbore/test_wellbore_v2.py @@ -469,3 +469,891 @@ def test_wellbore_write_log_data(wellbore_api_server, wellbore_client_v2: Wellbo data_partition_id="text", ) +from osdu_client.services.wellbore.v2 import WellboreClient + +def test_wellbore_create_alpha_logs_sessions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_alpha_logs_sessions( + record_id="text", + mode="text", + from_version=10, + meta={}, + time_to_live=10, + data_partition_id="text", + ) + +def test_wellbore_create_or_update_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_dipset( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_logs(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_logs( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_logsets(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_logsets( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_marker(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_marker( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_trajectories(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_trajectories( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_well(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_well( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_wellbore_v2(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_wellbore_v2( + data_partition_id="text", + ) + +def test_wellbore_create_trajectory_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_trajectory_data( + trajectoryid="text", + orient="text", + data_partition_id="text", + ) + +def test_wellbore_define_dips_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.define_dips_dipset( + dipsetid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_dip(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_dip( + dipsetid="text", + index="text", + data_partition_id="text", + ) + +def test_wellbore_delete_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_dipset( + dipsetid="text", + recursive=False, + data_partition_id="text", + ) + +def test_wellbore_delete_log(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_log( + logid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_logset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_logset( + logsetid="text", + recursive=False, + data_partition_id="text", + ) + +def test_wellbore_delete_marker(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_marker( + markerid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_trajectory(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_trajectory( + trajectoryid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_well(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_well( + wellid="text", + recursive=False, + data_partition_id="text", + ) + +def test_wellbore_delete_wellbores(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_wellbores( + wellboreid="text", + recursive=False, + data_partition_id="text", + ) + +def test_wellbore_get_about(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_about( + data_partition_id="text", + ) + +def test_wellbore_get_alpha_logs_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_alpha_logs_data( + record_id="text", + offset=10, + limit=10, + curves="text", + describe=False, + filter=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_alpha_logs_versions_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_alpha_logs_versions_data( + record_id="text", + version="text", + offset=10, + limit=10, + curves="text", + describe=False, + filter=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_decimated_log(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_decimated_log( + logid="text", + quantiles=10, + start=10, + stop=10, + orient="text", + bulk_path="text", + data_partition_id="text", + ) + +def test_wellbore_get_dip(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_dip( + dipsetid="text", + index=10, + limit=10, + data_partition_id="text", + ) + +def test_wellbore_get_dip_at_index(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_dip_at_index( + dipsetid="text", + index="text", + data_partition_id="text", + ) + +def test_wellbore_get_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_dipset( + dipsetid="text", + data_partition_id="text", + ) + +def test_wellbore_get_dipsets_versions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_dipsets_versions( + dipsetid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_log(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_log( + logid="text", + data_partition_id="text", + ) + +def test_wellbore_get_log_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_log_data( + logid="text", + orient="text", + bulk_path="text", + data_partition_id="text", + ) + +def test_wellbore_get_log_statistics(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_log_statistics( + logid="text", + bulk_path="text", + data_partition_id="text", + ) + +def test_wellbore_get_log_version(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_log_version( + logid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_log_version_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_log_version_data( + logid="text", + version="text", + orient="text", + bulk_path="text", + data_partition_id="text", + ) + +def test_wellbore_get_log_versions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_log_versions( + logid="text", + data_partition_id="text", + ) + +def test_wellbore_get_logset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_logset( + logsetid="text", + data_partition_id="text", + ) + +def test_wellbore_get_logset_version(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_logset_version( + logsetid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_logset_versions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_logset_versions( + logsetid="text", + data_partition_id="text", + ) + +def test_wellbore_get_marker(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_marker( + markerid="text", + data_partition_id="text", + ) + +def test_wellbore_get_marker_version(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_marker_version( + markerid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_marker_versions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_marker_versions( + markerid="text", + data_partition_id="text", + ) + +def test_wellbore_get_record_session_v2(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_record_session_v2( + record_id="text", + session_id="text", + data_partition_id="text", + ) + +def test_wellbore_get_trajectory(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_trajectory( + trajectoryid="text", + data_partition_id="text", + ) + +def test_wellbore_get_trajectory_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_trajectory_data( + trajectoryid="text", + channels=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_trajectory_version(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_trajectory_version( + trajectoryid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_trajectory_version_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_trajectory_version_data( + trajectoryid="text", + version="text", + channels=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_trajectory_versions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_trajectory_versions( + trajectoryid="text", + data_partition_id="text", + ) + +def test_wellbore_get_version(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_version( + data_partition_id="text", + ) + +def test_wellbore_get_versions_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_versions_dipset( + dipsetid="text", + data_partition_id="text", + ) + +def test_wellbore_get_versions_wellbore(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_versions_wellbore( + wellboreid="text", + data_partition_id="text", + ) + +def test_wellbore_get_well_v2(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_well_v2( + wellid="text", + data_partition_id="text", + ) + +def test_wellbore_get_well_version(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_well_version( + wellid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_well_versions_v2(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_well_versions_v2( + wellid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbores(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_wellbores( + wellboreid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbores_versions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_wellbores_versions( + wellboreid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_insert_dip_in_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.insert_dip_in_dipset( + dipsetid="text", + data_partition_id="text", + ) + +def test_wellbore_list_records_sessions_v2(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.list_records_sessions_v2( + record_id="text", + data_partition_id="text", + ) + +def test_wellbore_patch_alpha_logs_sessions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.patch_alpha_logs_sessions( + record_id="text", + session_id="text", + state="text", + data_partition_id="text", + ) + +def test_wellbore_query_dip_from_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.query_dip_from_dipset( + dipsetid="text", + min_reference=10, + max_reference=10, + classification="text", + data_partition_id="text", + ) + +def test_wellbore_recognize_family(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.recognize_family( + label="text", + description="text", + log_unit="text", + data_partition_id="text", + ) + +def test_wellbore_send_alpha_logs_sessions_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.send_alpha_logs_sessions_data( + record_id="text", + session_id="text", + data_partition_id="text", + ) + +def test_wellbore_update_dip(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.update_dip( + dipsetid="text", + index="text", + azimuth={}, + inclination={}, + reference={}, + classification="text", + quality={}, + x_coordinate={}, + y_coordinate={}, + z_coordinate={}, + data_partition_id="text", + ) + +def test_wellbore_update_log_recognition_upload_catalog(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.update_log_recognition_upload_catalog( + acl={}, + data={}, + legal={}, + data_partition_id="text", + ) + +def test_wellbore_upload_log_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.upload_log_data( + logid="text", + orient="text", + bulk_path="text", + data_partition_id="text", + ) + +def test_wellbore_write_alpha_logs_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.write_alpha_logs_data( + record_id="text", + data_partition_id="text", + ) + +def test_wellbore_write_log_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.write_log_data( + logid="text", + orient="text", + bulk_path="text", + data_partition_id="text", + ) + +from osdu_client.services.wellbore.v2 import WellboreClient + +def test_wellbore_create_alpha_logs_sessions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_alpha_logs_sessions( + record_id="text", + mode="text", + from_version=10, + meta={}, + time_to_live=10, + data_partition_id="text", + ) + +def test_wellbore_create_or_update_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_dipset( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_logs(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_logs( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_logsets(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_logsets( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_marker(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_marker( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_trajectories(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_trajectories( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_well(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_well( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_wellbore_v2(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_or_update_wellbore_v2( + data_partition_id="text", + ) + +def test_wellbore_create_trajectory_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.create_trajectory_data( + trajectoryid="text", + orient="text", + data_partition_id="text", + ) + +def test_wellbore_define_dips_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.define_dips_dipset( + dipsetid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_dip(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_dip( + dipsetid="text", + index="text", + data_partition_id="text", + ) + +def test_wellbore_delete_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_dipset( + dipsetid="text", + recursive=False, + data_partition_id="text", + ) + +def test_wellbore_delete_log(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_log( + logid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_logset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_logset( + logsetid="text", + recursive=False, + data_partition_id="text", + ) + +def test_wellbore_delete_marker(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_marker( + markerid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_trajectory(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_trajectory( + trajectoryid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_well(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_well( + wellid="text", + recursive=False, + data_partition_id="text", + ) + +def test_wellbore_delete_wellbores(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.delete_wellbores( + wellboreid="text", + recursive=False, + data_partition_id="text", + ) + +def test_wellbore_get_about(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_about( + data_partition_id="text", + ) + +def test_wellbore_get_alpha_logs_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_alpha_logs_data( + record_id="text", + offset=10, + limit=10, + curves="text", + describe=False, + filter=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_alpha_logs_versions_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_alpha_logs_versions_data( + record_id="text", + version="text", + offset=10, + limit=10, + curves="text", + describe=False, + filter=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_decimated_log(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_decimated_log( + logid="text", + quantiles=10, + start=10, + stop=10, + orient="text", + bulk_path="text", + data_partition_id="text", + ) + +def test_wellbore_get_dip(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_dip( + dipsetid="text", + index=10, + limit=10, + data_partition_id="text", + ) + +def test_wellbore_get_dip_at_index(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_dip_at_index( + dipsetid="text", + index="text", + data_partition_id="text", + ) + +def test_wellbore_get_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_dipset( + dipsetid="text", + data_partition_id="text", + ) + +def test_wellbore_get_dipsets_versions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_dipsets_versions( + dipsetid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_log(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_log( + logid="text", + data_partition_id="text", + ) + +def test_wellbore_get_log_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_log_data( + logid="text", + orient="text", + bulk_path="text", + data_partition_id="text", + ) + +def test_wellbore_get_log_statistics(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_log_statistics( + logid="text", + bulk_path="text", + data_partition_id="text", + ) + +def test_wellbore_get_log_version(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_log_version( + logid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_log_version_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_log_version_data( + logid="text", + version="text", + orient="text", + bulk_path="text", + data_partition_id="text", + ) + +def test_wellbore_get_log_versions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_log_versions( + logid="text", + data_partition_id="text", + ) + +def test_wellbore_get_logset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_logset( + logsetid="text", + data_partition_id="text", + ) + +def test_wellbore_get_logset_version(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_logset_version( + logsetid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_logset_versions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_logset_versions( + logsetid="text", + data_partition_id="text", + ) + +def test_wellbore_get_marker(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_marker( + markerid="text", + data_partition_id="text", + ) + +def test_wellbore_get_marker_version(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_marker_version( + markerid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_marker_versions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_marker_versions( + markerid="text", + data_partition_id="text", + ) + +def test_wellbore_get_record_session_v2(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_record_session_v2( + record_id="text", + session_id="text", + data_partition_id="text", + ) + +def test_wellbore_get_trajectory(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_trajectory( + trajectoryid="text", + data_partition_id="text", + ) + +def test_wellbore_get_trajectory_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_trajectory_data( + trajectoryid="text", + channels=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_trajectory_version(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_trajectory_version( + trajectoryid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_trajectory_version_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_trajectory_version_data( + trajectoryid="text", + version="text", + channels=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_trajectory_versions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_trajectory_versions( + trajectoryid="text", + data_partition_id="text", + ) + +def test_wellbore_get_version(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_version( + data_partition_id="text", + ) + +def test_wellbore_get_versions_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_versions_dipset( + dipsetid="text", + data_partition_id="text", + ) + +def test_wellbore_get_versions_wellbore(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_versions_wellbore( + wellboreid="text", + data_partition_id="text", + ) + +def test_wellbore_get_well_v2(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_well_v2( + wellid="text", + data_partition_id="text", + ) + +def test_wellbore_get_well_version(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_well_version( + wellid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_well_versions_v2(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_well_versions_v2( + wellid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbores(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_wellbores( + wellboreid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbores_versions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.get_wellbores_versions( + wellboreid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_insert_dip_in_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.insert_dip_in_dipset( + dipsetid="text", + data_partition_id="text", + ) + +def test_wellbore_list_records_sessions_v2(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.list_records_sessions_v2( + record_id="text", + data_partition_id="text", + ) + +def test_wellbore_patch_alpha_logs_sessions(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.patch_alpha_logs_sessions( + record_id="text", + session_id="text", + state="text", + data_partition_id="text", + ) + +def test_wellbore_query_dip_from_dipset(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.query_dip_from_dipset( + dipsetid="text", + min_reference=10, + max_reference=10, + classification="text", + data_partition_id="text", + ) + +def test_wellbore_recognize_family(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.recognize_family( + label="text", + description="text", + log_unit="text", + data_partition_id="text", + ) + +def test_wellbore_send_alpha_logs_sessions_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.send_alpha_logs_sessions_data( + record_id="text", + session_id="text", + data_partition_id="text", + ) + +def test_wellbore_update_dip(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.update_dip( + dipsetid="text", + index="text", + azimuth={}, + inclination={}, + reference={}, + classification="text", + quality={}, + x_coordinate={}, + y_coordinate={}, + z_coordinate={}, + data_partition_id="text", + ) + +def test_wellbore_update_log_recognition_upload_catalog(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.update_log_recognition_upload_catalog( + acl={}, + data={}, + legal={}, + data_partition_id="text", + ) + +def test_wellbore_upload_log_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.upload_log_data( + logid="text", + orient="text", + bulk_path="text", + data_partition_id="text", + ) + +def test_wellbore_write_alpha_logs_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.write_alpha_logs_data( + record_id="text", + data_partition_id="text", + ) + +def test_wellbore_write_log_data(wellbore_api_server, wellbore_client_v2: WellboreClient): + wellbore_client_v2.write_log_data( + logid="text", + orient="text", + bulk_path="text", + data_partition_id="text", + ) + diff --git a/tests/wellbore/test_wellbore_v3.py b/tests/wellbore/test_wellbore_v3.py index 52c2727..ca6347d 100644 --- a/tests/wellbore/test_wellbore_v3.py +++ b/tests/wellbore/test_wellbore_v3.py @@ -412,3 +412,819 @@ def test_wellbore_update_welllogs_sessions(wellbore_api_server, wellbore_client_ data_partition_id="text", ) +from osdu_client.services.wellbore.v3 import WellboreClient + +def test_wellbore_create_or_update_wellbore_interval_set(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_or_update_wellbore_interval_set( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_wellbore_v3(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_or_update_wellbore_v3( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_wells(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_or_update_wells( + data_partition_id="text", + ) + +def test_wellbore_create_query_wellbore_welllogs(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_query_wellbore_welllogs( + wellbore_attribute="text", + data_partition_id="text", + ) + +def test_wellbore_create_query_wellbores_wellboremarkersets(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_query_wellbores_wellboremarkersets( + wellbore_id="text", + data_partition_id="text", + ) + +def test_wellbore_create_query_wellbores_welllogs(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_query_wellbores_welllogs( + wellbore_id="text", + data_partition_id="text", + ) + +def test_wellbore_create_wellbore_markerset(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_wellbore_markerset( + data_partition_id="text", + ) + +def test_wellbore_create_wellboretrajectories(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_wellboretrajectories( + data_partition_id="text", + ) + +def test_wellbore_create_wellboretrajectories_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_wellboretrajectories_data( + record_id="text", + data_partition_id="text", + ) + +def test_wellbore_create_wellboretrajectories_sessions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_wellboretrajectories_sessions( + record_id="text", + mode="text", + from_version=10, + meta={}, + time_to_live=10, + data_partition_id="text", + ) + +def test_wellbore_create_wellboretrajectories_sessions_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_wellboretrajectories_sessions_data( + record_id="text", + session_id="text", + data_partition_id="text", + ) + +def test_wellbore_create_welllogs(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_welllogs( + data_partition_id="text", + ) + +def test_wellbore_create_welllogs_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_welllogs_data( + record_id="text", + data_partition_id="text", + ) + +def test_wellbore_create_welllogs_sessions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_welllogs_sessions( + record_id="text", + mode="text", + from_version=10, + meta={}, + time_to_live=10, + data_partition_id="text", + ) + +def test_wellbore_delete_well(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.delete_well( + wellid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_wellbore(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.delete_wellbore( + wellboreid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_wellbore_interval_set(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.delete_wellbore_interval_set( + wellboreintervalsetsid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_wellbore_markerset(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.delete_wellbore_markerset( + wellboremarkersetid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_wellboretrajectories(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.delete_wellboretrajectories( + wellboretrajectoryid="text", + purge=False, + data_partition_id="text", + ) + +def test_wellbore_delete_welllog(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.delete_welllog( + welllogid="text", + purge=False, + data_partition_id="text", + ) + +def test_wellbore_get_about(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_about( + data_partition_id="text", + ) + +def test_wellbore_get_record_session_v3(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_record_session_v3( + record_id="text", + session_id="text", + data_partition_id="text", + ) + +def test_wellbore_get_returns_data_specified_version(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_returns_data_specified_version( + record_id="text", + version="text", + offset=10, + limit=10, + curves="text", + describe=False, + filter=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_session(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_session( + record_id="text", + session_id="text", + data_partition_id="text", + ) + +def test_wellbore_get_version(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_version( + data_partition_id="text", + ) + +def test_wellbore_get_versions_wellbore_interval_set(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_versions_wellbore_interval_set( + wellboreintervalsetsid="text", + data_partition_id="text", + ) + +def test_wellbore_get_versions_wellboretrajectory(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_versions_wellboretrajectory( + wellboretrajectoryid="text", + data_partition_id="text", + ) + +def test_wellbore_get_well(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_well( + wellid="text", + data_partition_id="text", + ) + +def test_wellbore_get_well_version(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_well_version( + wellid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_well_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_well_versions( + wellid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbore(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellbore( + wellboreid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbore_interval_set(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellbore_interval_set( + wellboreintervalsetsid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbore_interval_sets_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellbore_interval_sets_versions( + wellboreintervalsetsid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbore_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellbore_versions( + wellboreid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellboremarkerset_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellboremarkerset_versions( + wellboremarkersetid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellboremarkersets(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellboremarkersets( + wellboremarkersetid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellboremarkersets_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellboremarkersets_versions( + wellboremarkersetid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbores_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellbores_versions( + wellboreid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellboretrajectories(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellboretrajectories( + wellboretrajectoryid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellboretrajectories_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellboretrajectories_data( + record_id="text", + offset=10, + limit=10, + curves="text", + describe=False, + filter=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellboretrajectories_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellboretrajectories_versions( + wellboretrajectoryid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllog(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllog( + welllogid="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllog_version(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllog_version( + welllogid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllog_version_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllog_version_data( + record_id="text", + version="text", + offset=10, + limit=10, + curves="text", + describe=False, + filter=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllog_version_data_statistics(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllog_version_data_statistics( + record_id="text", + version="text", + curves="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllog_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllog_versions( + welllogid="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllogs_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllogs_data( + record_id="text", + offset=10, + limit=10, + curves="text", + describe=False, + filter=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllogs_data_statistics(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllogs_data_statistics( + record_id="text", + curves="text", + data_partition_id="text", + ) + +def test_wellbore_list_records_sessions_v3(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.list_records_sessions_v3( + record_id="text", + data_partition_id="text", + ) + +def test_wellbore_list_session_given_record(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.list_session_given_record( + record_id="text", + data_partition_id="text", + ) + +def test_wellbore_patch_wellboretrajectories_sessions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.patch_wellboretrajectories_sessions( + record_id="text", + session_id="text", + state="text", + data_partition_id="text", + ) + +def test_wellbore_query_alpha_query_wellbores(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.query_alpha_query_wellbores( + names="text", + data_partition_id="text", + ) + +def test_wellbore_query_alpha_query_wellbores_wellboretrajectories(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.query_alpha_query_wellbores_wellboretrajectories( + wellbore_id="text", + data_partition_id="text", + ) + +def test_wellbore_query_alpha_query_welllogs(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.query_alpha_query_welllogs( + names="text", + wellbore_id="text", + mnemonics="text", + data_partition_id="text", + ) + +def test_wellbore_recognize_family(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.recognize_family( + label="text", + description="text", + log_unit="text", + data_partition_id="text", + ) + +def test_wellbore_send_welllog_sessions_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.send_welllog_sessions_data( + record_id="text", + session_id="text", + data_partition_id="text", + ) + +def test_wellbore_trigger_welllog_version_data_statistics(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.trigger_welllog_version_data_statistics( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_update_log_recognition_upload_catalog(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.update_log_recognition_upload_catalog( + acl={}, + data={}, + legal={}, + data_partition_id="text", + ) + +def test_wellbore_update_welllogs_sessions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.update_welllogs_sessions( + record_id="text", + session_id="text", + state="text", + data_partition_id="text", + ) + +from osdu_client.services.wellbore.v3 import WellboreClient + +def test_wellbore_create_or_update_wellbore_interval_set(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_or_update_wellbore_interval_set( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_wellbore_v3(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_or_update_wellbore_v3( + data_partition_id="text", + ) + +def test_wellbore_create_or_update_wells(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_or_update_wells( + data_partition_id="text", + ) + +def test_wellbore_create_query_wellbore_welllogs(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_query_wellbore_welllogs( + wellbore_attribute="text", + data_partition_id="text", + ) + +def test_wellbore_create_query_wellbores_wellboremarkersets(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_query_wellbores_wellboremarkersets( + wellbore_id="text", + data_partition_id="text", + ) + +def test_wellbore_create_query_wellbores_welllogs(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_query_wellbores_welllogs( + wellbore_id="text", + data_partition_id="text", + ) + +def test_wellbore_create_wellbore_markerset(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_wellbore_markerset( + data_partition_id="text", + ) + +def test_wellbore_create_wellboretrajectories(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_wellboretrajectories( + data_partition_id="text", + ) + +def test_wellbore_create_wellboretrajectories_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_wellboretrajectories_data( + record_id="text", + data_partition_id="text", + ) + +def test_wellbore_create_wellboretrajectories_sessions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_wellboretrajectories_sessions( + record_id="text", + mode="text", + from_version=10, + meta={}, + time_to_live=10, + data_partition_id="text", + ) + +def test_wellbore_create_wellboretrajectories_sessions_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_wellboretrajectories_sessions_data( + record_id="text", + session_id="text", + data_partition_id="text", + ) + +def test_wellbore_create_welllogs(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_welllogs( + data_partition_id="text", + ) + +def test_wellbore_create_welllogs_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_welllogs_data( + record_id="text", + data_partition_id="text", + ) + +def test_wellbore_create_welllogs_sessions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.create_welllogs_sessions( + record_id="text", + mode="text", + from_version=10, + meta={}, + time_to_live=10, + data_partition_id="text", + ) + +def test_wellbore_delete_well(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.delete_well( + wellid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_wellbore(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.delete_wellbore( + wellboreid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_wellbore_interval_set(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.delete_wellbore_interval_set( + wellboreintervalsetsid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_wellbore_markerset(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.delete_wellbore_markerset( + wellboremarkersetid="text", + data_partition_id="text", + ) + +def test_wellbore_delete_wellboretrajectories(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.delete_wellboretrajectories( + wellboretrajectoryid="text", + purge=False, + data_partition_id="text", + ) + +def test_wellbore_delete_welllog(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.delete_welllog( + welllogid="text", + purge=False, + data_partition_id="text", + ) + +def test_wellbore_get_about(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_about( + data_partition_id="text", + ) + +def test_wellbore_get_record_session_v3(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_record_session_v3( + record_id="text", + session_id="text", + data_partition_id="text", + ) + +def test_wellbore_get_returns_data_specified_version(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_returns_data_specified_version( + record_id="text", + version="text", + offset=10, + limit=10, + curves="text", + describe=False, + filter=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_session(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_session( + record_id="text", + session_id="text", + data_partition_id="text", + ) + +def test_wellbore_get_version(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_version( + data_partition_id="text", + ) + +def test_wellbore_get_versions_wellbore_interval_set(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_versions_wellbore_interval_set( + wellboreintervalsetsid="text", + data_partition_id="text", + ) + +def test_wellbore_get_versions_wellboretrajectory(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_versions_wellboretrajectory( + wellboretrajectoryid="text", + data_partition_id="text", + ) + +def test_wellbore_get_well(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_well( + wellid="text", + data_partition_id="text", + ) + +def test_wellbore_get_well_version(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_well_version( + wellid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_well_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_well_versions( + wellid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbore(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellbore( + wellboreid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbore_interval_set(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellbore_interval_set( + wellboreintervalsetsid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbore_interval_sets_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellbore_interval_sets_versions( + wellboreintervalsetsid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbore_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellbore_versions( + wellboreid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellboremarkerset_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellboremarkerset_versions( + wellboremarkersetid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellboremarkersets(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellboremarkersets( + wellboremarkersetid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellboremarkersets_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellboremarkersets_versions( + wellboremarkersetid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellbores_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellbores_versions( + wellboreid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellboretrajectories(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellboretrajectories( + wellboretrajectoryid="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellboretrajectories_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellboretrajectories_data( + record_id="text", + offset=10, + limit=10, + curves="text", + describe=False, + filter=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_wellboretrajectories_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_wellboretrajectories_versions( + wellboretrajectoryid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllog(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllog( + welllogid="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllog_version(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllog_version( + welllogid="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllog_version_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllog_version_data( + record_id="text", + version="text", + offset=10, + limit=10, + curves="text", + describe=False, + filter=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllog_version_data_statistics(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllog_version_data_statistics( + record_id="text", + version="text", + curves="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllog_versions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllog_versions( + welllogid="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllogs_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllogs_data( + record_id="text", + offset=10, + limit=10, + curves="text", + describe=False, + filter=["text"], + orient="text", + data_partition_id="text", + ) + +def test_wellbore_get_welllogs_data_statistics(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.get_welllogs_data_statistics( + record_id="text", + curves="text", + data_partition_id="text", + ) + +def test_wellbore_list_records_sessions_v3(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.list_records_sessions_v3( + record_id="text", + data_partition_id="text", + ) + +def test_wellbore_list_session_given_record(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.list_session_given_record( + record_id="text", + data_partition_id="text", + ) + +def test_wellbore_patch_wellboretrajectories_sessions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.patch_wellboretrajectories_sessions( + record_id="text", + session_id="text", + state="text", + data_partition_id="text", + ) + +def test_wellbore_query_alpha_query_wellbores(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.query_alpha_query_wellbores( + names="text", + data_partition_id="text", + ) + +def test_wellbore_query_alpha_query_wellbores_wellboretrajectories(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.query_alpha_query_wellbores_wellboretrajectories( + wellbore_id="text", + data_partition_id="text", + ) + +def test_wellbore_query_alpha_query_welllogs(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.query_alpha_query_welllogs( + names="text", + wellbore_id="text", + mnemonics="text", + data_partition_id="text", + ) + +def test_wellbore_recognize_family(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.recognize_family( + label="text", + description="text", + log_unit="text", + data_partition_id="text", + ) + +def test_wellbore_send_welllog_sessions_data(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.send_welllog_sessions_data( + record_id="text", + session_id="text", + data_partition_id="text", + ) + +def test_wellbore_trigger_welllog_version_data_statistics(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.trigger_welllog_version_data_statistics( + record_id="text", + version="text", + data_partition_id="text", + ) + +def test_wellbore_update_log_recognition_upload_catalog(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.update_log_recognition_upload_catalog( + acl={}, + data={}, + legal={}, + data_partition_id="text", + ) + +def test_wellbore_update_welllogs_sessions(wellbore_api_server, wellbore_client_v3: WellboreClient): + wellbore_client_v3.update_welllogs_sessions( + record_id="text", + session_id="text", + state="text", + data_partition_id="text", + ) +