Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth committed Aug 6, 2013
1 parent 5a4adf7 commit 81441de
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions backdrop/core/upload/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
def remove_blanks(rows):
return filter(lambda r: not all(len(v) == 0 for v in r), rows)


def make_dicts(rows):
"""Return an iterator of dictionaries given an iterator of rows
Expand Down
4 changes: 1 addition & 3 deletions tests/core/test_auto_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,12 @@ def test_auto_id_can_be_generated_from_a_timestamp(self):
"foo": "bar"
}]


auto_id = ["_timestamp", "foo"]

bucket = Bucket(self.mock_database, "bucket", generate_id_from=auto_id)
bucket.parse_and_store(objects)


saved_object = self.mock_repository.save.call_args[0][0]
saved_object = self.mock_repository.save.call_args[0][0]

assert_that(b64decode(saved_object['_id']),
is_("2013-08-01T00:00:00+00:00.bar"))
2 changes: 0 additions & 2 deletions tests/core/test_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,5 +579,3 @@ def test_period_group_query_fails_when_weeks_do_not_start_on_monday(self):
assert_that(str(e), is_(
"Weeks MUST start on Monday but got date: 2013-04-09 00:00:00"
))


2 changes: 1 addition & 1 deletion tests/core/upload/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ def test_ignores_empty_rows(self):
assert_that(records, only_contains(
{"name": "val1", "size": 123},
{"name": "val2", "size": 456},
))
))

0 comments on commit 81441de

Please sign in to comment.