Debian Codegraph @

tests/roots/test-add_source_parser-conflicts-with-users-setting/conf.py

raw
1 import sys
2 from pathlib import Path
3
4 sys.path.insert(0, str(Path.cwd().resolve()))
5
6 from docutils.parsers import Parser
7
8
9 class DummyTestParser(Parser):
10 supported = ('dummy',)
11
12
13 extensions = ['source_parser']
14 source_suffix = {
15 '.rst': 'restructuredtext',
16 '.test': 'restructuredtext',
17 }
18 source_parsers = {
19 '.test': DummyTestParser,
20 }