Closed felixfontein closed 8 years ago
I don't understand, why would getnikola/nikola#2532 break dependency tests? They seem totally irrelevant...
Removing the line self.deps = 'tests/data/publication_list/test.bib'
in the test file "fixes" the test, but there might be something wrong...
There is, the test doesn’t really test it. I’m working on it.
The test uses the ReST compiler, which now bails out if it doesn't gets a Post
object passed. Before getnikola/nikola#2532, it would try to find out the post object by itself.
@Kwpolska: how about adjusting the ReST compiler such that the compile_html
method tries to find the Post
object by itself (as it did before)? This should reduce breakages like this one.
That still won’t cut it:
<div class="system-message">
<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils"><string></tt>, line 1)</p>
<p>Unknown directive type "publication_list".</p>
<pre class="literal-block">
.. publication_list:: tests/data/publication_list/test.bib
:highlight_author: Nikola Tesla
</pre>
</div>
3 DependencyList(None, [])
Wait, I’m missing dependencies locally. It’s a one-line fix then.
@Kwpolska: how about adjusting the ReST compiler such that the compile_html method tries to find the Post object by itself (as it did before)? This should reduce breakages like this one.
I had to patch test_rst_compiler.py
to make that finding work.
Ok. Main thing is that it's fixed now :)
The combination of this plugin and getnikola/nikola#2532 breaks the tests: https://travis-ci.org/getnikola/plugins/jobs/167842014