diff --git a/src/datadoc/utils.py b/src/datadoc/utils.py index 38072f8e..ae7fa815 100644 --- a/src/datadoc/utils.py +++ b/src/datadoc/utils.py @@ -33,7 +33,6 @@ def pick_random_port() -> int: return int(sock.getsockname()[1]) -# TODO(@tilen1976: remove?) # noqa: TD004, TD003 def get_timestamp_now() -> datetime.datetime: """Return a timestamp for the current moment.""" return datetime.datetime.now(tz=datetime.timezone.utc) diff --git a/tests/conftest.py b/tests/conftest.py index 28f4bf82..ed14e4da 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -24,11 +24,8 @@ from datadoc import state -from .utils import TEST_DATASETS_DIRECTORY from .utils import TEST_EXISTING_METADATA_DIRECTORY from .utils import TEST_EXISTING_METADATA_FILE_NAME -from .utils import TEST_EXISTING_METADATA_NAMING_STANDARD_FILEPATH -from .utils import TEST_NAMING_STANDARD_COMPATIBLE_DATASET from .utils import TEST_PARQUET_FILE_NAME from .utils import TEST_PARQUET_FILEPATH from .utils import TEST_RESOURCES_DIRECTORY @@ -93,27 +90,6 @@ def metadata( ) -# TODO(@tilen1976: remove?) # noqa: TD004, TD003 -@pytest.fixture() -def metadata_merged( - _mock_timestamp: None, - _mock_user_info: None, - subject_mapping_fake_statistical_structure: StatisticSubjectMapping, - tmp_path: Path, -) -> Datadoc: - target = tmp_path / TEST_NAMING_STANDARD_COMPATIBLE_DATASET - target.parent.mkdir(parents=True, exist_ok=True) - shutil.copy( - TEST_DATASETS_DIRECTORY / TEST_NAMING_STANDARD_COMPATIBLE_DATASET, - target, - ) - return Datadoc( - str(target), - str(TEST_EXISTING_METADATA_NAMING_STANDARD_FILEPATH), - statistic_subject_mapping=subject_mapping_fake_statistical_structure, - ) - - @pytest.fixture() def existing_metadata_path() -> Path: return TEST_EXISTING_METADATA_DIRECTORY