Skip to content

Commit 672e555

Browse files
committed
fix: use raw string in test
1 parent e8da78d commit 672e555

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quartodoc/tests/test_renderers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_render_param_kwargs_annotated():
2626

2727
assert (
2828
res # noqa: W605
29-
== "a: \[int\](`int`), b: \[int\](`int`) = 1, *args: \[list\](`list`)\[\[str\](`str`)\], c: \[int\](`int`), d: \[int\](`int`), **kwargs: \[dict\](`dict`)\[\[str\](`str`), \[str\](`str`)\]" # noqa: W605
29+
== r"a: \[int\](`int`), b: \[int\](`int`) = 1, *args: \[list\](`list`)\[\[str\](`str`)\], c: \[int\](`int`), d: \[int\](`int`), **kwargs: \[dict\](`dict`)\[\[str\](`str`), \[str\](`str`)\]" # noqa: W605
3030
)
3131

3232

@@ -101,7 +101,7 @@ def test_render_doc_attribute(renderer):
101101
res = renderer.render(attr)
102102
print(res)
103103

104-
assert res == ["abc", "[Optional\\[\\]](`Optional`)", "xyz"] # noqa
104+
assert res == ["abc", r"[Optional\[\]](`Optional`)", "xyz"] # noqa
105105

106106

107107
@pytest.mark.parametrize("children", ["embedded", "flat"])

0 commit comments

Comments
 (0)