Skip to content

Commit 39fb303

Browse files
authored
Fix tests for comments global config and update JSON Schema (#275)
1 parent 6581671 commit 39fb303

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"comments": {
4747
"markdownDescription": "https://github.com/mondeja/mkdocs-include-markdown-plugin#include-markdown_comments",
4848
"type": "boolean",
49-
"default": true
49+
"default": false
5050
},
5151
"rewrite_relative_urls": {
5252
"markdownDescription": "https://github.com/mondeja/mkdocs-include-markdown-plugin#include-markdown_trailing-newlines",

tests/test_unit/test_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,14 @@ def _run_test(
142142
'{% include-markdown "{filepath}" %}',
143143
'foo\n',
144144
'foo\n',
145-
{'comments': False},
145+
{},
146146
id='default-comments',
147147
),
148148
pytest.param(
149-
'{% include-markdown "{filepath}" comments=true %}',
149+
'{% include-markdown "{filepath}" %}',
150150
'foo\n',
151151
'<!-- BEGIN INCLUDE {filepath} -->\nfoo\n\n<!-- END INCLUDE -->',
152-
{},
152+
{'comments': True},
153153
id='custom-comments',
154154
),
155155

0 commit comments

Comments
 (0)