File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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" })
You can’t perform that action at this time.
0 commit comments