Skip to content
Browse files

Fix last broken test

  • Loading branch information
ralsina committed Sep 2, 2015
1 parent 60a4ea7 commit 763f2783cc7f64cec993aefcc8ee037b1271206e
Showing with 2 additions and 11 deletions.
  1. +2 −11 tests/
@@ -47,7 +47,6 @@
from import gist
from import vimeo
from import Plugin as DocPlugin
from nikola.utils import _reload
from .base import BaseTestCase, FakeSite

@@ -281,16 +280,8 @@ class DocTestCase(ReSTExtensionTestCase):
sample2 = 'Sample for testing my :doc:`titled post <fake-post>`'

def setUp(self):
# Initialize plugin, register role
self.plugin = DocPlugin()
# Hack to fix leaked state from integration tests
f = docutils.parsers.rst.roles.role('doc', None, None, None)[0] = FakeSite()
except AttributeError:
return super(DocTestCase, self).setUp()
super(DocTestCase, self).setUp()
docutils.parsers.rst.roles._role_registry['doc'].site = FakeSite()

def test_doc_doesnt_exist(self):
self.assertRaises(Exception, self.assertHTMLContains, 'anything', {})

0 comments on commit 763f278

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