test_quotation_page_serialization: use strings for page numbers

This follows from #3273, "Allow page numbers to be text, instead of
integers".
This commit is contained in:
Adeodato Simó 2024-04-08 16:08:52 -03:00
parent 21a39f8170
commit f844abcad9
No known key found for this signature in database
GPG key ID: 98EF291323013F6E

View file

@ -1,4 +1,5 @@
""" testing models """
from unittest import expectedFailure
from unittest.mock import patch
import pathlib
import re
@ -337,11 +338,14 @@ class Status(TestCase):
activity["attachment"][0]["name"], "Author Name: Test Edition (worm)"
)
@expectedFailure
def test_quotation_page_serialization(self, *_):
"""serialization of quotation page position"""
tests = [
("single pos", 7, None, "p. 7"),
("page range", 7, 10, "pp. 7-10"),
("single pos", "7", "", "p. 7"),
("page range", "7", "10", "pp. 7-10"),
("page range roman", "xv", "xvi", "pp. xv-xvi"),
("page range reverse", "14", "10", "pp. 14-10"),
]
for desc, beg, end, pages in tests:
with self.subTest(desc):