From 95136fb47070ca388a78a3c66ea5d7d33fedad5a Mon Sep 17 00:00:00 2001 From: Mike Montano Date: Thu, 30 Nov 2023 18:42:50 -0600 Subject: [PATCH] Flake8 --- test/test_upgrade_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_upgrade_db.py b/test/test_upgrade_db.py index fdc071f..587cd19 100644 --- a/test/test_upgrade_db.py +++ b/test/test_upgrade_db.py @@ -16,7 +16,7 @@ def test_upgrade_v2_v3(): # should throw an exception because logging # should not exist in a V2 database print([ele for ele in conn.execute("select * from logging")]) - assert False, f"{filename} is a v3 database" + raise AssertionError(f"{filename} is a v3 database") except sqlite3.OperationalError: pass # v2 should not have a logging table conn.close() @@ -28,5 +28,5 @@ def test_upgrade_v2_v3(): try: print([ele for ele in conn.execute("select * from logging")]) except sqlite3.OperationalError: - assert False, f"{filename} is not a v3 database" + raise AssertionError(f"{filename} is not a v3 database") conn.close()