mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 14:04:20 +01:00
Improve reliability of test_previewing_page_with_format_works test (#2110)
This commit is contained in:
@@ -53,7 +53,7 @@ def test_previewing_page_with_format_works():
|
||||
data = {
|
||||
"title": "title",
|
||||
"route": "route",
|
||||
"content": "<test>content_testing</test>",
|
||||
"content": "<h1>content_testing</h1>",
|
||||
"format": "html",
|
||||
"nonce": sess.get("nonce"),
|
||||
"draft": "y",
|
||||
@@ -64,6 +64,6 @@ def test_previewing_page_with_format_works():
|
||||
r = client.post("/admin/pages/preview", data=data)
|
||||
assert r.status_code == 200
|
||||
resp = r.get_data(as_text=True)
|
||||
assert "<test>content_testing</test>" in resp
|
||||
assert "<h1>content_testing</h1>" in resp
|
||||
|
||||
destroy_ctfd(app)
|
||||
|
||||
Reference in New Issue
Block a user