Skip to content
Permalink
Browse files

publication_list: the BibTeX file should be a dependency

  • Loading branch information
xuhdev committed Feb 7, 2016
1 parent 20fcd41 commit 852332a40e02d6478010beed7ba542a912070479
Showing with 2 additions and 0 deletions.
  1. +1 −0 tests/test_publication_list.py
  2. +1 −0 v7/publication_list/publication_list.py
@@ -38,6 +38,7 @@ def test_default(self):
'</ul></div>'
)
self.sample = '.. publication_list:: tests/data/publication_list/test.bib\n\t:highlight_author: Nikola Tesla'
self.deps = 'tests/data/publication_list/test.bib'
self.basic_test()
assert re.search(expected.replace('\n', '').strip(), self.html.replace('\n', '').strip())

@@ -64,6 +64,7 @@ def run(self):
style = find_plugin('pybtex.style.formatting', self.options.get('style', 'unsrt'))()
bibtex_dir = self.options.get('bibtex_dir', 'bibtex')
highlight_author = self.options.get('highlight_author', None)
self.state.document.settings.record_dependencies.add(self.arguments[0])

parser = Parser()

0 comments on commit 852332a

Please sign in to comment.
You can’t perform that action at this time.