datalad-core/conftest.py
Michael Hanke bcfe1fd76d
test(fixtures): new test_datasets
This replaces `populated_dataset` and `served_populated_dataset`. The
functionality is generalized to a collection of datasets. These are now
built once per session (for speed), and verified to be unmodified, and
having all annex key that are registered in `HEAD`.

The idea is to add more flavors of test datasets.
2026-03-19 18:23:59 +01:00

42 lines
1.2 KiB
Python

"""Fixture setup"""
__all__ = [
'annexrepo',
'bareannexrepo',
'baregitrepo',
'cfgman',
'gitrepo',
'http_fileserver',
'modified_dataset',
'populated_dataset',
'served_populated_dataset',
'skip_when_symlinks_not_supported',
'symlinks_supported',
'verify_pristine_gitconfig_global',
]
from datalad_core.tests.fixtures import (
# function-scope temporary Git repo with an initialized annex
annexrepo,
# function-scope temporary, bare Git repo with an initialized annex
bareannexrepo,
# function-scope temporary, bare Git repo
baregitrepo,
# function-scope config manager
cfgman,
# function-scope temporary Git repo
gitrepo,
# function-scope file server
http_fileserver,
# session-scope repository with complex unsafed modifications
modified_dataset,
# session-scope dataset collection, URL and path
test_datasets,
# function-scope auto-skip when `symlinks_supported` is False
skip_when_symlinks_not_supported,
# session-scope flag if symlinks are supported in test directories
symlinks_supported,
# verify no test leave contaminated config behind
verify_pristine_gitconfig_global,
)