aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_db.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_db.py')
-rw-r--r--tests/test_db.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_db.py b/tests/test_db.py
index d1b269a..5c973ab 100644
--- a/tests/test_db.py
+++ b/tests/test_db.py
@@ -51,3 +51,9 @@ def test_hash_behaves_normally(unmigrated_conn, a, b, expected):
"SELECT DATA_HASH(?) == DATA_HASH(?)", (a, b)
).fetchone()
assert res == (1 if expected else 0)
+
+
+@pytest.mark.parametrize("a,b,expected", hash_testdata)
+def test_sha256_behaves_normally(unmigrated_conn, a, b, expected):
+ (res,) = unmigrated_conn.execute("SELECT SHA256(?) == SHA256(?)", (a, b)).fetchone()
+ assert res == (1 if expected else 0)