Files
teng-lin--notebooklm-py/tests/unit/test_version_pyproject_sync.py
wehub-resource-sync 09e9f3545f
Test / Code Quality (push) Has been cancelled
Test / Test (macos-latest, Python 3.10) (push) Has been cancelled
Test / Test (macos-latest, Python 3.11) (push) Has been cancelled
Test / Test (macos-latest, Python 3.12) (push) Has been cancelled
Test / Test (macos-latest, Python 3.13) (push) Has been cancelled
Test / Test (macos-latest, Python 3.14) (push) Has been cancelled
Test / Test (ubuntu-latest, Python 3.10) (push) Has been cancelled
Test / Test (ubuntu-latest, Python 3.11) (push) Has been cancelled
Test / Test (ubuntu-latest, Python 3.12) (push) Has been cancelled
Test / Test (ubuntu-latest, Python 3.13) (push) Has been cancelled
Test / Test (ubuntu-latest, Python 3.14) (push) Has been cancelled
Test / Test (windows-latest, Python 3.10) (push) Has been cancelled
Test / Test (windows-latest, Python 3.11) (push) Has been cancelled
Test / Test (windows-latest, Python 3.12) (push) Has been cancelled
Test / Test (windows-latest, Python 3.13) (push) Has been cancelled
Test / Test (windows-latest, Python 3.14) (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
dependency-audit / pip-audit (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:30:13 +08:00

29 lines
824 B
Python

"""Pin notebooklm.__version__ matches pyproject.toml.
Defends against the version-gate skip hazard: if pyproject.toml is bumped
in a separate PR from the deprecation removal, gate tests skip silently.
This test makes the version-bump -> removal-active relationship a runtime
invariant, not a release-checklist item.
"""
from __future__ import annotations
from pathlib import Path
try:
import tomllib
except ModuleNotFoundError: # pragma: no cover - exercised on Python <3.11
import tomli as tomllib
import pytest
import notebooklm
pytestmark = pytest.mark.repo_lint
def test_version_matches_pyproject() -> None:
pyproject = Path(__file__).resolve().parents[2] / "pyproject.toml"
parsed = tomllib.loads(pyproject.read_text("utf-8"))
assert notebooklm.__version__ == parsed["project"]["version"]