Permalink
Browse files

Work around test failure due to (over?)-zealous default calendar prov…

  • Loading branch information...
1 parent f711f6b commit 31afc3d286f992dfbfdbe0a6274b271d625921ba @glyph glyph committed Feb 16, 2012
Showing with 9 additions and 2 deletions.
  1. +9 −2 txdav/caldav/datastore/test/test_util.py
@@ -326,10 +326,17 @@ def storeUnderTest(self):
@inlineCallbacks
def test_migrateEmptyHome(self):
"""
- Migrating an empty home into an existing home should destroy all the existing home's calendars.
+ Migrating an empty home into an existing home should destroy all the
+ existing home's calendars.
"""
yield populateCalendarsFrom({
- "empty_home": {},
+ "empty_home": {
+ # Some of the upgrade logic will ensure that sufficient default
+ # calendars exist for basic usage, so this home is actually only
+ # *mostly* empty; the important thing is that the default
+ # calendar is removed.
+ "other-default-calendar": {}
+ },
"non_empty_home": {
"calendar": {},
"inbox": {},

0 comments on commit 31afc3d

Please sign in to comment.