Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
harden test test_google_albums_sync
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Feb 17, 2020
1 parent 9595049 commit 9cd6242
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test-units/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ def download_faves(self, expected=4, no_response=False, trash=True):
)
s.gp.start(s.parsed_args)

db = LocalData(s.root)
# Total of 1 out of media items
db.cur.execute("SELECT COUNT() FROM SyncFiles")
count = db.cur.fetchone()
self.assertEqual(expected, count[0])
with LocalData(s.root) as db:
# Total of 1 out of media items
db.cur.execute("SELECT COUNT() FROM SyncFiles")
count = db.cur.fetchone()
self.assertEqual(expected, count[0])

class DummyResponse:
@staticmethod
Expand Down

0 comments on commit 9cd6242

Please sign in to comment.