From 3cefe672b42e445c8c0ac996fc560fa8a9eb3fd1 Mon Sep 17 00:00:00 2001 From: "Maarten A. Breddels" Date: Wed, 18 Dec 2019 10:41:47 +0100 Subject: [PATCH] test: source code was detected because the title matched --- tests/app/execute_test.py | 2 +- tests/server/execute_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/app/execute_test.py b/tests/app/execute_test.py index bf34b0234..3aecb2c6d 100644 --- a/tests/app/execute_test.py +++ b/tests/app/execute_test.py @@ -19,7 +19,7 @@ def test_hello_world(http_client, base_url): assert response.code == 200 html_text = response.body.decode('utf-8') assert 'Hi Voila' in html_text - assert 'print' not in html_text, 'by default the source code should be stripped' + assert 'print(' not in html_text, 'by default the source code should be stripped' assert 'test_template.css' not in html_text, "test_template should not be the default" diff --git a/tests/server/execute_test.py b/tests/server/execute_test.py index 801c35e6c..692151a1f 100644 --- a/tests/server/execute_test.py +++ b/tests/server/execute_test.py @@ -8,5 +8,5 @@ def test_hello_world(http_client, print_notebook_url): assert response.code == 200 html_text = response.body.decode('utf-8') assert 'Hi Voila' in html_text - assert 'print' not in html_text, 'by default the source code should be stripped' + assert 'print(' not in html_text, 'by default the source code should be stripped' assert 'test_template.css' not in html_text, "test_template should not be the default"