Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .internal/pre_commit_tools/auto_add_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,13 @@ def auto_create_test(notebook_file_path: Path) -> None:
def create_test_content(notebook_file_path: Path) -> str:
return f"""from tests.utils_for_testbook import (
validate_quantum_program_size,
validate_quantum_model,
wrap_testbook,
)
from testbook.client import TestbookNotebookClient
@wrap_testbook("{notebook_file_path.stem}", timeout_seconds={DEFAULT_TIMEOUTS_SECONDS})
def test_notebook(tb: TestbookNotebookClient) -> None:
# test models
validate_quantum_model(tb.ref("qmod"))
# test quantum programs
validate_quantum_program_size(
tb.ref_pydantic("qprog"),
Expand Down