MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / side_effect

Method side_effect

test/engine/test_parseconnect.py:1043–1054  ·  test/engine/test_parseconnect.py::TestRegNewDBAPI.side_effect
(url, kw)

Source from the content-addressed store, hash-verified

1041 global MyEnginePlugin
1042
1043 def side_effect(url, kw):
1044 eq_(
1045 url.query,
1046 {
1047 class="st">"plugin": class="st">"engineplugin",
1048 class="st">"myplugin_arg": class="st">"bat",
1049 class="st">"foo": class="st">"bar",
1050 },
1051 )
1052 eq_(kw, {class="st">"logging_name": class="st">"foob"})
1053 kw[class="st">"logging_name"] = class="st">"bar"
1054 return MyEnginePlugin
1055
1056 def update_url(url):
1057 return url.difference_update_query([class="st">"myplugin_arg"])

Callers

nothing calls this directly

Calls 2

eq_Function · 0.90
popMethod · 0.45

Tested by

no test coverage detected