Exemple #1
0
    def test(self):
        state = State()
        parse_doxyfile(state, 'test/doxyfile/Doxyfile')
        self.assertEqual(
            state.doxyfile,
            {
                'HTML_EXTRA_FILES': ['css', 'another.png', 'hello'],
                'HTML_EXTRA_STYLESHEET': ['a.css', 'b.css'],
                'HTML_OUTPUT': 'html',
                'M_CLASS_TREE_EXPAND_LEVELS': 1,
                'M_EXPAND_INNER_TYPES': False,
                'M_FAVICON': 'favicon-dark.png',
                'M_FILE_TREE_EXPAND_LEVELS': 1,
                'M_LINKS_NAVBAR1': ['pages', 'modules'],
                'M_LINKS_NAVBAR2': ['files', 'annotated'],  # different order
                'M_MATH_CACHE_FILE': 'm.math.cache',
                'M_PAGE_FINE_PRINT': 'this is "quotes"',
                'M_PAGE_HEADER': 'this is "quotes" \'apostrophes\'',
                'M_SEARCH_DISABLED': False,
                'M_SEARCH_DOWNLOAD_BINARY': False,
                'M_SEARCH_EXTERNAL_URL': '',
                'M_SEARCH_HELP':
                """Search for symbols, directories, files, pages or modules. You can omit any
prefix from the symbol or file path; adding a <code>:</code> or <code>/</code>
suffix lists all members of given symbol or directory. Navigate through the
list using <span class="m-label m-dim">&darr;</span> and
<span class="m-label m-dim">&uarr;</span>, press
<span class="m-label m-dim">Enter</span> to go.""",
                'M_THEME_COLOR': '#22272e',
                'OUTPUT_DIRECTORY': '',
                'PROJECT_BRIEF': 'is cool',
                'PROJECT_NAME': 'My Pet Project',
                'XML_OUTPUT': 'xml'
            })
Exemple #2
0
    def test(self):
        state = State()
        parse_doxyfile(state, 'test/doxyfile/Doxyfile')
        self.assertEqual(
            state.doxyfile,
            {
                'DOT_FONTNAME': 'Helvetica',
                'DOT_FONTSIZE': 10,
                'HTML_EXTRA_FILES': ['css', 'another.png', 'hello'],
                'HTML_EXTRA_STYLESHEET': ['a.css', 'b.css'],
                'HTML_OUTPUT': 'html',
                'M_CLASS_TREE_EXPAND_LEVELS': 1,
                'M_EXPAND_INNER_TYPES': False,
                'M_FAVICON': 'favicon-dark.png',
                'M_FILE_TREE_EXPAND_LEVELS': 1,
                'M_LINKS_NAVBAR1': ['pages', 'modules'],
                'M_LINKS_NAVBAR2': ['files', 'annotated'],  # different order
                'M_MATH_CACHE_FILE': 'm.math.cache',
                'M_PAGE_FINE_PRINT': 'this is "quotes"',
                'M_PAGE_HEADER': 'this is "quotes" \'apostrophes\'',
                'M_SEARCH_DISABLED': False,
                'M_SEARCH_DOWNLOAD_BINARY': False,
                'M_SEARCH_BASE_URL': '',
                'M_SEARCH_EXTERNAL_URL': '',
                'M_SEARCH_HELP':
                """<p class="m-noindent">Search for symbols, directories, files, pages or
modules. You can omit any prefix from the symbol or file path; adding a
<code>:</code> or <code>/</code> suffix lists all members of given symbol or
directory.</p>
<p class="m-noindent">Use <span class="m-label m-dim">&darr;</span>
/ <span class="m-label m-dim">&uarr;</span> to navigate through the list,
<span class="m-label m-dim">Enter</span> to go.
<span class="m-label m-dim">Tab</span> autocompletes common prefix, you can
copy a link to the result using <span class="m-label m-dim">⌘</span>
<span class="m-label m-dim">L</span> while <span class="m-label m-dim">⌘</span>
<span class="m-label m-dim">M</span> produces a Markdown link.</p>
""",
                'M_THEME_COLOR': '#22272e',
                'OUTPUT_DIRECTORY': '',
                'PROJECT_BRIEF': 'is cool',
                'PROJECT_NAME': 'My Pet Project',
                'SHOW_INCLUDE_FILES': True,
                'XML_OUTPUT': 'xml'
            })
Exemple #3
0
 def test(self):
     state = State()
     parse_doxyfile(state, 'test/doxyfile/Doxyfile')
     self.assertEqual(
         state.doxyfile, {
             'HTML_EXTRA_FILES': ['css', 'another.png', 'hello'],
             'HTML_EXTRA_STYLESHEET': ['a.css', 'b.css'],
             'HTML_OUTPUT':
             'html',
             'M_CLASS_TREE_EXPAND_LEVELS':
             1,
             'M_EXPAND_INNER_TYPES':
             False,
             'M_FAVICON':
             '',
             'M_FILE_TREE_EXPAND_LEVELS':
             1,
             'M_LINKS_NAVBAR1': ['pages', 'namespaces'],
             'M_LINKS_NAVBAR2': ['annotated', 'files'],
             'M_PAGE_FINE_PRINT':
             'this is "quotes"',
             'M_PAGE_HEADER':
             'this is "quotes" \'apostrophes\'',
             'M_SEARCH_DISABLED':
             False,
             'M_SEARCH_DOWNLOAD_BINARY':
             False,
             'M_SEARCH_EXTERNAL_URL':
             '',
             'M_SEARCH_HELP':
             'Search for symbols, headers, pages or example source files. '
             'You can omit any prefix from the symbol or file path.',
             'M_THEME_COLOR':
             '#22272e',
             'OUTPUT_DIRECTORY':
             '',
             'PROJECT_BRIEF':
             'is cool',
             'PROJECT_NAME':
             'My Pet Project',
             'XML_OUTPUT':
             'xml'
         })
Exemple #4
0
 def test(self):
     state = State()
     parse_doxyfile(state, 'test/doxyfile/Doxyfile')
     self.assertEqual(
         state.doxyfile, {
             'HTML_EXTRA_FILES': ['css', 'another.png', 'hello'],
             'HTML_EXTRA_STYLESHEET': ['a.css', 'b.css'],
             'HTML_OUTPUT': 'html',
             'M_CLASS_TREE_EXPAND_LEVELS': 1,
             'M_EXPAND_INNER_TYPES': False,
             'M_FILE_TREE_EXPAND_LEVELS': 1,
             'M_PAGE_FINE_PRINT': 'this is "quotes"',
             'M_PAGE_HEADER': 'this is "quotes" \'apostrophes\'',
             'M_SHOW_DOXYGEN_VERSION': True,
             'M_THEME_COLOR': '#22272e',
             'OUTPUT_DIRECTORY': '',
             'PROJECT_BRIEF': 'is cool',
             'PROJECT_NAME': 'My Pet Project',
             'XML_OUTPUT': 'xml'
         })
Exemple #5
0
 def test_subdirs(self):
     state = State()
     with self.assertRaises(NotImplementedError):
         parse_doxyfile(state, 'test/doxyfile/Doxyfile-subdirs')