Mercurial > piecrust2
diff tests/tmpfs.py @ 974:72f17534d58e
tests: First pass on making unit tests work again.
- Fix all imports
- Add more helper functions to work with mock file-systems
- Simplify some code by running chef directly on the mock FS
- Fix a couple tests
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 17 Oct 2017 01:07:30 -0700 |
parents | f987b29d6fab |
children | 45ad976712ec |
line wrap: on
line diff
--- a/tests/tmpfs.py Tue Oct 17 01:04:10 2017 -0700 +++ b/tests/tmpfs.py Tue Oct 17 01:07:30 2017 -0700 @@ -9,9 +9,9 @@ class TempDirFileSystem(TestFileSystemBase): def __init__(self): self._root = os.path.join( - os.path.dirname(__file__), - '__tmpfs__', - '%d' % random.randrange(1000)) + os.path.dirname(__file__), + '__tmpfs__', + '%d' % random.randrange(1000)) self._done = False def path(self, p):