Move conf.py up a level as it's same for all tests

This commit is contained in:
Jeff Forcier 2014-04-06 10:01:56 -07:00
parent 18c4bbc437
commit ac901178d5
2 changed files with 4 additions and 4 deletions

View file

@ -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