datalad-core/datalad_core/tests/test_fixtures.py
Michael Hanke b4bb4e147a feat: test helper modify_dataset() and modified_dataset
This is a more flexible and more robust variant of the datalad-next
fixture `modified_dataset`, split into a test helper and the actual
fixture.

Unlike the datalad-next version, it does not require any datalad
commands to work, just plain Git.
2024-11-01 09:57:15 +01:00

6 lines
307 B
Python

def test_modified_dataset_fixture(modified_dataset):
assert modified_dataset
# the test is to do nothing.
# the dataset modification will be done, the promised capture
# before the test starts. the test will then do nothing, and
# the promise is reevaluated at the end and must succeed.