feat: initial application release

This commit is contained in:
Nathaniel Landau
2022-12-23 04:10:08 +00:00
parent 35717e0760
commit b7bcf74926
78 changed files with 15508 additions and 0 deletions

16
tests/cli_test.py Normal file
View File

@@ -0,0 +1,16 @@
# type: ignore
"""Test obsidian-metadata CLI."""
from typer.testing import CliRunner
from obsidian_metadata.cli import app
from tests.helpers import Regex
runner = CliRunner()
def test_version() -> None:
"""Test printing version and then exiting."""
result = runner.invoke(app, ["--version"])
assert result.exit_code == 0
assert result.output == Regex(r"obsidian_metadata: v\d+\.\d+\.\d+$")