Skip to content

Commit

Permalink
Remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mmwinther committed Jan 30, 2024
1 parent 5d4aa4d commit 8ff5ba9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/backend/test_datadoc_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ def test_direct_person_identifying_default_value(metadata: DataDocMetadata):
assert all(not v.direct_person_identifying for v in metadata.meta.variables)


# Test with existing dataset and metadata document
def test_save_file_path_metadata_field(
existing_metadata_file: str,
metadata: DataDocMetadata,
Expand All @@ -211,14 +210,10 @@ def test_save_file_path_metadata_field(
assert saved_file_path == str(metadata.dataset)


# Test with dataset and no metadata document
def test_save_file_path_dataset_and_no_metadata(
metadata: DataDocMetadata,
):
metadata.write_metadata_document()
with Path.open(Path(TEST_RESOURCES_METADATA_DOCUMENT)) as f:
saved_file_path = json.load(f)["datadoc"]["dataset"]["file_path"]
assert saved_file_path == str(metadata.dataset)


# Test with metadata document and no dataset

0 comments on commit 8ff5ba9

Please sign in to comment.