MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_no_params_option

Method test_no_params_option

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

Source from the content-addressed store, hash-verified

436 )
437
438 def test_no_params_option(self):
439 stmt = (
440 "SELECT '%'"
441 + testing.db.dialect.statement_compiler(
442 testing.db.dialect, None
443 ).default_from()
444 )
445
446 with testing.db.connect() as conn:
447 result = (
448 conn.execution_options(no_parameters=True)
449 .exec_driver_sql(stmt)
450 .scalar()
451 )
452 eq_(result, "%")
453
454 @testing.requires.qmark_paramstyle
455 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