Skip to content

Commit c238131

Browse files
committed
Checks don't run on tests
1 parent 2cab67a commit c238131

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mergin/test/test_client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,9 +1389,7 @@ def _get_table_row_count(db_file, table):
13891389
try:
13901390
con_verify = sqlite3.connect(db_file)
13911391
cursor_verify = con_verify.cursor()
1392-
cursor_verify.execute(
1393-
"select count(*) from {};".format(table)
1394-
) # nosec B608 - internal test helper, not using user input
1392+
cursor_verify.execute("select count(*) from {};".format(table))
13951393
return cursor_verify.fetchone()[0]
13961394
finally:
13971395
cursor_verify.close()
@@ -3087,7 +3085,7 @@ def test_uploaded_chunks_cache(mc):
30873085

30883086
with open(file, "rb") as file_handle:
30893087
data = file_handle.read()
3090-
checksum = hashlib.sha1() # nosec B324 - usedforsecurity=False flag is compatible with python 3.9+
3088+
checksum = hashlib.sha1()
30913089
checksum.update(data)
30923090
checksum_str = checksum.hexdigest()
30933091
resp = mc.post(f"/v2/projects/{mp.project_id()}/chunks", data, {"Content-Type": "application/octet-stream"})

0 commit comments

Comments
 (0)