mirror of
https://github.com/kennethreitz-archive/sphinx-to-github.git
synced 2026-06-05 23:40:17 +00:00
e98c23737e
Tests for Layout, LayoutFactory and setup(app). Resulted in structuring some code so that LayoutFactory uses other factories to generate the helpers and handlers for the Layout.
24 lines
281 B
Python
24 lines
281 B
Python
|
|
class MockExists(object):
|
|
|
|
def __call__(self, name):
|
|
self.name = name
|
|
return True
|
|
|
|
class MockRemove(MockExists):
|
|
|
|
pass
|
|
|
|
|
|
class MockStream(object):
|
|
|
|
def __init__(self):
|
|
self.msgs = []
|
|
|
|
def write(self, msg):
|
|
self.msgs.append(msg)
|
|
|
|
|
|
|
|
|