Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

tests: ensure custom content in header (#6709)

Dylan Madisetti79112e9c31ab
diff --git a/tests/_server/templates/test_templates.py b/tests/_server/templates/test_templates.py
index 4c95da0b5d..146789d0fe 100644
--- a/tests/_server/templates/test_templates.py
+++ b/tests/_server/templates/test_templates.py
@@ -165,7 +165,7 @@ class TestNotebookPageTemplate(unittest.TestCase):
self.mode,
)
- assert head in result
+ assert head in result.split("</head>", 1)[0]
_assert_no_leftover_replacements(result)
def test_notebook_page_template_with_custom_css_config(self) -> None: