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

Method test_regexp_replace

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

Source from the content-addressed store, hash-verified

3421 )
3422
3423 def test_regexp_replace(self):
3424 assert_raises_message(
3425 exc.CompileError,
3426 "default dialect does not support regular expression replacements",
3427 self.table.c.myid.regexp_replace("pattern", "rep").compile,
3428 dialect=default.DefaultDialect(),
3429 )
3430
3431
3432class RegexpTestStrCompiler(fixtures.TestBase, testing.AssertsCompiledSQL):

Callers

nothing calls this directly

Calls 2

assert_raises_messageFunction · 0.90
regexp_replaceMethod · 0.45

Tested by

no test coverage detected