Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jibola committed Jan 16, 2024
1 parent 4e21a1e commit 347cd22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions test/asyncio_tests/test_aiohttp_gridfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,18 @@ def setUpClass(cls):
cls.contents = b"Jesse" * 100 * 1024

# Record when we created the file, to check the Last-Modified header
cls.put_start = datetime.datetime.now(datetime.timezone.utc).replace(microsecond=0, tzinfo=None)
cls.put_start = datetime.datetime.now(datetime.timezone.utc).replace(
microsecond=0, tzinfo=None
)
file_id = "id"
cls.file_id = file_id
cls.fs.delete(cls.file_id)
cls.fs.put(cls.contents, _id=file_id, filename="foo", content_type="my type")
item = cls.fs.get(file_id)
cls.contents_hash = _hash_gridout(item)
cls.put_end = datetime.datetime.now(datetime.timezone.utc).replace(microsecond=0, tzinfo=None)
cls.put_end = datetime.datetime.now(datetime.timezone.utc).replace(
microsecond=0, tzinfo=None
)
cls.app = cls.srv = cls.app_handler = None

@classmethod
Expand Down
8 changes: 6 additions & 2 deletions test/tornado_tests/test_motor_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,19 @@ def setUp(self):
self.contents = b"Jesse" * 100 * 1024

# Record when we created the file, to check the Last-Modified header
self.put_start = datetime.datetime.now(datetime.timezone.utc).replace(microsecond=0, tzinfo=None)
self.put_start = datetime.datetime.now(datetime.timezone.utc).replace(
microsecond=0, tzinfo=None
)
file_id = "id"
self.file_id = file_id
self.fs.delete(self.file_id)
self.fs.put(self.contents, _id=file_id, filename="foo", content_type="my type")

item = self.fs.get(file_id)
self.contents_hash = _hash_gridout(item)
self.put_end = datetime.datetime.now(datetime.timezone.utc).replace(microsecond=0, tzinfo=None)
self.put_end = datetime.datetime.now(datetime.timezone.utc).replace(
microsecond=0, tzinfo=None
)
self.assertTrue(self.fs.get_last_version("foo"))

def motor_db(self, **kwargs):
Expand Down

0 comments on commit 347cd22

Please sign in to comment.