Exemple #1
0
    def test_doc_config_header(self):
        folder_config = dict(index='foo.md', header={'title': 'test'})

        header = folder_config['header']
        header['weight'] = 10
        expected = ('content.md', '', header)
        actual = doc_config(self.doc, folder_config, 10)
        self.assertEqual(actual, expected)
Exemple #2
0
    def test_doc_config_index_target(self):
        folder_config = dict(index='content.md',
                             header={'title': 'test'},
                             target='foobar')

        header = folder_config['header']
        header['weight'] = 10
        expected = ('_index.md', 'foobar', header)
        actual = doc_config(self.doc, folder_config, 10)
        self.assertEqual(actual, expected)
Exemple #3
0
    def test_doc_config(self):
        folder_config = dict(index='foo.md')

        expected = ('content.md', '', None)
        actual = doc_config(self.doc, folder_config)
        self.assertEqual(actual, expected)