Skip to content

Commit

Permalink
Flake8 isort
Browse files Browse the repository at this point in the history
  • Loading branch information
EdgesFTW committed Dec 1, 2023
1 parent 95136fb commit 0d5305c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_upgrade_db.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sqlite3

from logpyle import (upgrade_db)
from logpyle import upgrade_db


def test_upgrade_v2_v3():
Expand All @@ -15,7 +15,7 @@ def test_upgrade_v2_v3():
try:
# should throw an exception because logging
# should not exist in a V2 database
print([ele for ele in conn.execute("select * from logging")])
print(list(conn.execute("select * from logging")))
raise AssertionError(f"{filename} is a v3 database")
except sqlite3.OperationalError:
pass # v2 should not have a logging table
Expand All @@ -26,7 +26,7 @@ def test_upgrade_v2_v3():
# ensure it is V3
conn = sqlite3.connect(filename + suffix + "." + file_ext)
try:
print([ele for ele in conn.execute("select * from logging")])
print(list(conn.execute("select * from logging")))
except sqlite3.OperationalError:
raise AssertionError(f"{filename} is not a v3 database")
conn.close()

0 comments on commit 0d5305c

Please sign in to comment.