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

Method side_effect

test/engine/test_parseconnect.py:1043–1054  ·  view source on GitHub ↗
(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 "plugin": "engineplugin",
1048 "myplugin_arg": "bat",
1049 "foo": "bar",
1050 },
1051 )
1052 eq_(kw, {"logging_name": "foob"})
1053 kw["logging_name"] = "bar"
1054 return MyEnginePlugin
1055
1056 def update_url(url):
1057 return url.difference_update_query(["myplugin_arg"])

Callers

nothing calls this directly

Calls 2

eq_Function · 0.90
popMethod · 0.45

Tested by

no test coverage detected