MCPcopy Index your code
hub / github.com/PyMySQL/mysqlclient / test_multi_statements_false

Function test_multi_statements_false

tests/test_connection.py:17–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def test_multi_statements_false():
18 conn = connection_factory(multi_statements=False)
19 cursor = conn.cursor()
20
21 with pytest.raises(ProgrammingError):
22 cursor.execute("select 17; select 2")
23
24 cursor.execute("select 17")
25 rows = cursor.fetchall()
26 assert rows == ((17,),)

Callers

nothing calls this directly

Calls 4

connection_factoryFunction · 0.90
cursorMethod · 0.80
executeMethod · 0.80
fetchallMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…