Skip to content

Allow replacing notebooks content pre-test#1434

Merged
classiqdor merged 2 commits intomainfrom
add_test_replace
Jan 22, 2026
Merged

Allow replacing notebooks content pre-test#1434
classiqdor merged 2 commits intomainfrom
add_test_replace

Conversation

@classiqdor
Copy link
Contributor

@classiqdor classiqdor commented Jan 15, 2026

Updated to support both regex and changing variables
Example usage:

@wrap_testbook("bernstein_vazirani", timeout_seconds=30,
    replacements_regex=[("STRING_LENGTH = 5", "STRING_LENGTH = 6")],
    replacements_variables=[("SECRET_INT", 2)],
    )
def test_notebook(tb: TestbookNotebookClient) -> None:
    ....

@classiqdor classiqdor merged commit f7ce827 into main Jan 22, 2026
6 checks passed
@classiqdor classiqdor deleted the add_test_replace branch January 22, 2026 11:46
@github-actions
Copy link

🌟 Incredible, @classiqdor! You've merged your 58th PR! 🎯🎊

Your ongoing commitment to classiq-library is truly remarkable. You're a driving force in our community! 🚀
Your contributions are helping to shape the future of quantum computing! What exciting features or improvements do you envision next? 🔮

We are grateful for your dedication! 💫

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants