You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def test_messages(client):
"""Ensure that user can post messages"""
login(client, app.config["USERNAME"], app.config["PASSWORD"])
rv = client.post(
"/add",
data=dict(title="<Hello>", text="<strong>HTML</strong> allowed here"),
follow_redirects=True,
)
assert b"No entries here so far" not in rv.data
assert b"<Hello>" in rv.data
assert b"<strong>HTML</strong> allowed here" in rv.data
But this never passes the final test.
I replaced the first of the 3 asserts with assert b"New entry was successfully posted" in rv.data
Which then passes
The text was updated successfully, but these errors were encountered:
Current block is:
But this never passes the final test.
I replaced the first of the 3 asserts with
assert b"New entry was successfully posted" in rv.data
Which then passes
The text was updated successfully, but these errors were encountered: