Skip to content

Commit

Permalink
Update expected result for par preview test
Browse files Browse the repository at this point in the history
  • Loading branch information
saviit committed Aug 3, 2023
1 parent f78860c commit 19d8abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timApp/tests/server/test_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_translation_invalid_ref(self):
d = self.create_doc(initial_par="""#- {rd=9999 rp=xxxx}""")
t = self.create_translation(d)
p = t.document.get_paragraphs()[0]
md = f'#- {{r="tr" rp="{p.get_attr("rp")}"}}\n'
md = f'#- {{rd="{p.get_attr("rd")}" rp="{p.get_attr("rp")}"}}\n'
self.get(f"/getBlock/{t.id}/{p.get_id()}", expect_content={"text": md})
e = self.post_preview(t, text=md, json_key="texts", as_tree=True)
self.assert_content(e, ["The referenced document does not exist."])
Expand Down

0 comments on commit 19d8abb

Please sign in to comment.