comparison tests/mock.py @ 462:2027ab79f006

tests: Fix exclusion of built-in endpoints in tests.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 06 Oct 2018 19:27:47 -0700
parents c78eaebced8b
children 0bfd648aca6a
comparison
equal deleted inserted replaced
461:2fc9abd93023 462:2027ab79f006
89 89
90 90
91 class MockFileSystem(FileSystem): 91 class MockFileSystem(FileSystem):
92 def __init__(self, root, config, structure=None): 92 def __init__(self, root, config, structure=None):
93 super(MockFileSystem, self).__init__(root, config) 93 super(MockFileSystem, self).__init__(root, config)
94 self.include_builtin_namespaces = False 94 self.include_builtin_endpoints = False
95 if not structure: 95 if not structure:
96 self.structure = {} 96 self.structure = {}
97 else: 97 else:
98 self.structure = MockFileSystem.flat_to_nested(structure) 98 self.structure = MockFileSystem.flat_to_nested(structure)
99 99