Skip to content

Commit

Permalink
Test remove_config_comments
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Sep 30, 2023
1 parent 4ee4d59 commit 8537a94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sphinx_gallery/tests/test_block_parser.py
Expand Up @@ -239,6 +239,9 @@ def test_cpp_file_to_rst():
assert "// This is just a comment" in blocks[3][1]
assert "secret" in blocks[3][1]

assert "sphinx_gallery_foobar" in blocks[3][1]
assert "sphinx_gallery_foobar" not in parser.remove_config_comments(blocks[3][1])

cleaned = parser.remove_ignore_blocks(blocks[3][1])
assert "secret" not in cleaned
assert "y == 4" in cleaned

0 comments on commit 8537a94

Please sign in to comment.