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
assertclean_up_frontmatter("./tests", False)["cells"][0]["source"] =='# This a mock Jupyter file\n**We use it for testing**\n\nSome other text, which should not be deleted!\n'
=="# This a mock Jupyter file\n**We use it for testing**\n\nSome other text, which should not be deleted!\n"
19
+
)
20
+
21
+
22
+
deftest_find_ipynb():
23
+
assertfind_ipynb("tests")[0].stem=="mock"
24
+
9
25
10
26
deftest_conversion_of_refs():
11
-
quarto= [r"lorem ipsum [@anon2024] and [@anon2025]", r"lorem ipsum @anon2024 and @anon2025"]
27
+
quarto= [
28
+
r"lorem ipsum [@anon2024] and [@anon2025]",
29
+
r"lorem ipsum @anon2024 and @anon2025",
30
+
]
12
31
quarto[0] =quarto_ref_person_replace(quarto[0])
13
32
quarto[1] =quarto_ref_time_replace(quarto[1])
14
-
assertquarto== [r"lorem ipsum {cite:p}`anon2024` and {cite:p}`anon2025`", r"lorem ipsum {cite:t}`anon2024` and {cite:t}`anon2025`"]
15
-
assertconvert_refs("./tests", False)["cells"][2]["source"] ==r"lorem ipsum {cite:p}`anon2024` and {cite:p}`anon2025` and lorem ipsum {cite:t}`anon2024` and {cite:t}`anon2025`"
33
+
assertquarto== [
34
+
r"lorem ipsum {cite:p}`anon2024` and {cite:p}`anon2025`",
35
+
r"lorem ipsum {cite:t}`anon2024` and {cite:t}`anon2025`",
0 commit comments