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

Method test_regexp_replace

test/sql/test_operators.py:3305–3310  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3303 )
3304
3305 def test_regexp_replace(self):
3306 self.assert_compile(
3307 self.table.c.myid.regexp_replace("pattern", "replacement"),
3308 "<regexp replace>(mytable.myid, :myid_1, :myid_2)",
3309 checkparams={"myid_1": "pattern", "myid_2": "replacement"},
3310 )
3311
3312 def test_regexp_replace_column(self):
3313 self.assert_compile(

Callers

nothing calls this directly

Calls 2

assert_compileMethod · 0.80
regexp_replaceMethod · 0.45

Tested by

no test coverage detected