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

Method test_regexp_replace

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

Source from the content-addressed store, hash-verified

3497 )
3498
3499 def test_regexp_replace(self):
3500 self.assert_compile(
3501 self.table.c.myid.regexp_replace("pattern", "replacement"),
3502 "<regexp replace>(mytable.myid, :myid_1, :myid_2)",
3503 checkparams={"myid_1": "pattern", "myid_2": "replacement"},
3504 )
3505
3506 def test_regexp_replace_column(self):
3507 self.assert_compile(

Callers

nothing calls this directly

Calls 2

assert_compileMethod · 0.80
regexp_replaceMethod · 0.45

Tested by

no test coverage detected