Strange behaviour of tests/stores.py
I'm trying to implement a CouchDB store for Zim (see https:/
This test fails, yet it looks normal. Here is the faulty part (irrelevant parts removed):
for oldpath, newpath in (
(Path(
(Path(
):
[various tests]
self.
[various tests]
page = self.store.
self.
[various tests]
# check cleaning up works OK
page = self.store.
>>> self.assertFals
self.
I have marked the line that breaks. What the test does is simple :
- move 'Tasklist' to 'NewPage:
- test the good execution
- delete the new page name ('NewPage:
- test if 'NewPage' is empty and has no children
The problem is that 'NewPage:Foo' and 'NewPage:Foo:Bar' were created during the 'move' operation (they didn't exist previously). So the test fails, but it's logical. If I replace the last 'get_page()' with 'NewPage:Foo:Bar' or 'NewPage:
I understand that this test is supposed to work with the MemoryStore, but is this an expected behaviour ?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Zim Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jaap Karssenberg
- Solved:
- Last query:
- Last reply: