mirror of
https://github.com/natelandau/obsidian-metadata.git
synced 2025-11-12 23:13:48 -05:00
When multiple vaults are added to the configuration file, the script will prompt you to select one at runtime
13 lines
377 B
Python
13 lines
377 B
Python
# type: ignore
|
|
"""Test the questions class."""
|
|
|
|
|
|
from obsidian_metadata._utils import Questions
|
|
|
|
|
|
def test_vault_validation():
|
|
"""Test vault validation."""
|
|
assert Questions._validate_vault("tests/") is True
|
|
assert "Path is not a directory" in Questions._validate_vault("pyproject.toml")
|
|
assert "Path does not exist" in Questions._validate_vault("tests/vault2")
|