Skip to content

Commit

Permalink
remove unused fixture 'metadata merged'
Browse files Browse the repository at this point in the history
  • Loading branch information
tilen1976 committed Aug 15, 2024
1 parent f0ad72f commit 8cd4f76
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
1 change: 0 additions & 1 deletion src/datadoc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
24 changes: 0 additions & 24 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8cd4f76

Please sign in to comment.