diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2021-11-07 21:19:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2021-11-07 21:19:45 +0000 |
commit | 201c00bc0837af831f115e8313ad3ccb0be97e7a (patch) | |
tree | beb7558e95d073b63fa4bb76d830ccaa2de9711a /test/engine/test_processors.py | |
parent | 5b1c9053b0903b2d5a06f82b47fe16a870696ddc (diff) | |
parent | d050193daaa8d91371c759296f3304b8641c1976 (diff) | |
download | sqlalchemy-201c00bc0837af831f115e8313ad3ccb0be97e7a.tar.gz |
Merge "fully implement future engine and remove legacy" into main
Diffstat (limited to 'test/engine/test_processors.py')
-rw-r--r-- | test/engine/test_processors.py | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/test/engine/test_processors.py b/test/engine/test_processors.py index ad643a446..943ae32f0 100644 --- a/test/engine/test_processors.py +++ b/test/engine/test_processors.py @@ -1,7 +1,6 @@ from sqlalchemy.testing import assert_raises_message from sqlalchemy.testing import eq_ from sqlalchemy.testing import fixtures -from sqlalchemy.testing import mock class _BooleanProcessorTest(fixtures.TestBase): @@ -104,88 +103,3 @@ class CDateProcessorTest(_DateProcessorTest): from sqlalchemy import cprocessors cls.module = cprocessors - - -class _DistillArgsTest(fixtures.TestBase): - def test_distill_none(self): - eq_(self.module._distill_params(mock.Mock(), None, None), []) - - def test_distill_no_multi_no_param(self): - eq_(self.module._distill_params(mock.Mock(), (), {}), []) - - def test_distill_dict_multi_none_param(self): - eq_( - self.module._distill_params(mock.Mock(), None, {"foo": "bar"}), - [{"foo": "bar"}], - ) - - def test_distill_dict_multi_empty_param(self): - eq_( - self.module._distill_params(mock.Mock(), (), {"foo": "bar"}), - [{"foo": "bar"}], - ) - - def test_distill_single_dict(self): - eq_( - self.module._distill_params(mock.Mock(), ({"foo": "bar"},), {}), - [{"foo": "bar"}], - ) - - def test_distill_single_list_strings(self): - eq_( - self.module._distill_params(mock.Mock(), (["foo", "bar"],), {}), - [["foo", "bar"]], - ) - - def test_distill_single_list_tuples(self): - eq_( - self.module._distill_params( - mock.Mock(), ([("foo", "bar"), ("bat", "hoho")],), {} - ), - [("foo", "bar"), ("bat", "hoho")], - ) - - def test_distill_single_list_tuple(self): - eq_( - self.module._distill_params(mock.Mock(), ([("foo", "bar")],), {}), - [("foo", "bar")], - ) - - def test_distill_multi_list_tuple(self): - eq_( - self.module._distill_params( - mock.Mock(), ([("foo", "bar")], [("bar", "bat")]), {} - ), - ([("foo", "bar")], [("bar", "bat")]), - ) - - def test_distill_multi_strings(self): - eq_( - self.module._distill_params(mock.Mock(), ("foo", "bar"), {}), - [("foo", "bar")], - ) - - def test_distill_single_list_dicts(self): - eq_( - self.module._distill_params( - mock.Mock(), ([{"foo": "bar"}, {"foo": "hoho"}],), {} - ), - [{"foo": "bar"}, {"foo": "hoho"}], - ) - - def test_distill_single_string(self): - eq_(self.module._distill_params(mock.Mock(), ("arg",), {}), [["arg"]]) - - def test_distill_multi_string_tuple(self): - eq_( - self.module._distill_params(mock.Mock(), (("arg", "arg"),), {}), - [("arg", "arg")], - ) - - -class PyDistillArgsTest(_DistillArgsTest): - @classmethod - def setup_test_class(cls): - from sqlalchemy.engine import util - - cls.module = util |