mirror of
https://github.com/vale981/releases
synced 2025-03-06 02:01:41 -05:00
Move conf.py up a level as it's same for all tests
This commit is contained in:
parent
18c4bbc437
commit
ac901178d5
2 changed files with 4 additions and 4 deletions
|
@ -14,17 +14,17 @@ class integration(Spec):
|
|||
|
||||
def vanilla_invocation(self):
|
||||
# Doctree with just-a-changelog-named-changelog
|
||||
os.chdir('tests/_support/vanilla')
|
||||
os.chdir('tests/_support')
|
||||
try:
|
||||
result = run('sphinx-build -W . _build', warn=True, hide=True)
|
||||
result = run('sphinx-build -c . -W vanilla vanilla/_build', warn=True, hide=True)
|
||||
msg = "Build failed w/ stderr: {0}"
|
||||
assert result.ok, msg.format(result.stderr)
|
||||
with open('_build/changelog.html') as fd:
|
||||
with open('vanilla/_build/changelog.html') as fd:
|
||||
text = fd.read()
|
||||
assert "1.0.1" in text
|
||||
assert "#1" in text
|
||||
finally:
|
||||
shutil.rmtree('_build')
|
||||
shutil.rmtree('vanilla/_build')
|
||||
|
||||
def vanilla_with_other_files(self):
|
||||
# Same but w/ other files in toctree
|
||||
|
|
Loading…
Add table
Reference in a new issue