diff options
author | pennae <github@quasiparticle.net> | 2023-09-24 20:11:16 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-09-27 15:35:23 +0200 |
commit | e11cac622e7608327d17d2a140a580370476b0e4 (patch) | |
tree | 82c3b20f388667b2aaf39c4cfb8c1ad28aaeb747 /pkgs/tools/nix/nixos-render-docs | |
parent | 0706efa1bc11b97cd2ce8be36c91367144c6f308 (diff) | |
download | nixpkgs-e11cac622e7608327d17d2a140a580370476b0e4.tar nixpkgs-e11cac622e7608327d17d2a140a580370476b0e4.tar.gz nixpkgs-e11cac622e7608327d17d2a140a580370476b0e4.tar.bz2 nixpkgs-e11cac622e7608327d17d2a140a580370476b0e4.tar.lz nixpkgs-e11cac622e7608327d17d2a140a580370476b0e4.tar.xz nixpkgs-e11cac622e7608327d17d2a140a580370476b0e4.tar.zst nixpkgs-e11cac622e7608327d17d2a140a580370476b0e4.zip |
nixos-render-docs: fix tests for markdown-it-py 3
parsing of escaped text has changed internally, but apart from Token field contents that we only inspect in tests the change is *mostly* invisible to us. some bits of documentation now parse differently and need to be adjusted, but those were slightly questionable to begin with.
Diffstat (limited to 'pkgs/tools/nix/nixos-render-docs')
-rw-r--r-- | pkgs/tools/nix/nixos-render-docs/src/tests/test_plugins.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/tools/nix/nixos-render-docs/src/tests/test_plugins.py b/pkgs/tools/nix/nixos-render-docs/src/tests/test_plugins.py index 8564297efdd..26fdcea907d 100644 --- a/pkgs/tools/nix/nixos-render-docs/src/tests/test_plugins.py +++ b/pkgs/tools/nix/nixos-render-docs/src/tests/test_plugins.py @@ -208,7 +208,7 @@ def test_attr_span_escaping() -> None: content='\\[a]{#bar}', markup='', info='', meta={}, block=True, hidden=False, children=[ Token(type='text', tag='', nesting=0, attrs={}, map=None, level=0, children=None, - content='[a]{#bar}', markup='', info='', meta={}, block=False, hidden=False) + content='[a]{#bar}', markup='\\[', info='escape', meta={}, block=False, hidden=False) ]), Token(type='paragraph_close', tag='p', nesting=-1, attrs={}, map=None, level=0, children=None, content='', markup='', info='', meta={}, block=True, hidden=False) @@ -220,7 +220,7 @@ def test_attr_span_escaping() -> None: content='\\\\[a]{#bar}', markup='', info='', meta={}, block=True, hidden=False, children=[ Token(type='text', tag='', nesting=0, attrs={}, map=None, level=0, children=None, - content='\\', markup='', info='', meta={}, block=False, hidden=False), + content='\\', markup='\\\\', info='escape', meta={}, block=False, hidden=False), Token(type='attr_span_begin', tag='span', nesting=1, attrs={'id': 'bar'}, map=None, level=0, children=None, content='', markup='', info='', meta={}, block=False, hidden=False), Token(type='text', tag='', nesting=0, attrs={}, map=None, level=1, children=None, @@ -237,7 +237,7 @@ def test_attr_span_escaping() -> None: Token(type='inline', tag='', nesting=0, attrs={}, map=[0, 1], level=1, children=[ Token(type='text', tag='', nesting=0, attrs={}, map=None, level=0, children=None, - content='\\[a]{#bar}', markup='', info='', meta={}, block=False, hidden=False) + content='\\[a]{#bar}', markup='\\\\', info='escape', meta={}, block=False, hidden=False) ], content='\\\\\\[a]{#bar}', markup='', info='', meta={}, block=True, hidden=False), Token(type='paragraph_close', tag='p', nesting=-1, attrs={}, map=None, level=0, children=None, |