Skip to content

Use directory validator function instead of model

David Runge requested to merge config_directory_model into master

repod/config/settings.py: Add the top-level validator function validate_directory() instead of relying on a Directory model and a pydantic validator. This way it is possible to set a default for ManagementRepo.directory. Remove unneeded Directory model.

tests/config/test_settings.py: Adapt tests for Directory.validate_directory() for validate_directory().

Fixes #69 (closed)

Merge request reports

Loading