MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_no_params_option

Method test_no_params_option

test/engine/test_execute.py:431–445  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

429 )
430
431 def test_no_params_option(self):
432 stmt = (
433 "SELECT '%'"
434 + testing.db.dialect.statement_compiler(
435 testing.db.dialect, None
436 ).default_from()
437 )
438
439 with testing.db.connect() as conn:
440 result = (
441 conn.execution_options(no_parameters=True)
442 .exec_driver_sql(stmt)
443 .scalar()
444 )
445 eq_(result, "%")
446
447 @testing.requires.qmark_paramstyle
448 def test_raw_qmark(self, connection):

Callers

nothing calls this directly

Calls 6

eq_Function · 0.90
default_fromMethod · 0.45
connectMethod · 0.45
scalarMethod · 0.45
exec_driver_sqlMethod · 0.45
execution_optionsMethod · 0.45

Tested by

no test coverage detected