Skip to content

Commit

Permalink
Fix Carddav class for Python integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Sep 12, 2017
1 parent b896897 commit 3fa0baa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Tests/Integration/carddav.py
Expand Up @@ -124,9 +124,11 @@ def load_events(self):
content = self._get(url)
self.fields = content['fields']
self.events = []
for month in content['events']
for day in content['events'][month]
tmp_events = content['events'][month][day]
months = content['events']
for month in months.keys():
days = months[month]['days']
for day in days.keys():
tmp_events = days[day]['events']
self.events.extend(dict(zip(self.fields, event)) for event in tmp_events)
return self.events

Expand Down

0 comments on commit 3fa0baa

Please sign in to comment.