diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-29 14:36:24 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-29 15:05:19 -0500 |
| commit | 6c83ef761beb162981615fba1c22dc1c0f380568 (patch) | |
| tree | b1ed1dc8a9b4ef28d1c5b0e3a8e7c17189464656 /test/sql/test_generative.py | |
| parent | 4340a87f07d94311d2c0e90db0e75d1171c02c65 (diff) | |
| download | sqlalchemy-6c83ef761beb162981615fba1c22dc1c0f380568.tar.gz | |
- New improvements to the :func:`.text` construct, including
more flexible ways to set up bound parameters and return types;
in particular, a :func:`.text` can now be turned into a full
FROM-object, embeddable in other statements as an alias or CTE
using the new method :meth:`.TextClause.columns`.
[ticket:2877]
Diffstat (limited to 'test/sql/test_generative.py')
| -rw-r--r-- | test/sql/test_generative.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sql/test_generative.py b/test/sql/test_generative.py index 09b20d8ea..5a65cecef 100644 --- a/test/sql/test_generative.py +++ b/test/sql/test_generative.py @@ -428,13 +428,13 @@ class ClauseTest(fixtures.TestBase, AssertsCompiledSQL): class Vis(CloningVisitor): def visit_textclause(self, text): text.text = text.text + " SOME MODIFIER=:lala" - text.bindparams['lala'] = bindparam('lala') + text._bindparams['lala'] = bindparam('lala') clause2 = Vis().traverse(clause) assert c1 == str(clause) assert str(clause2) == c1 + " SOME MODIFIER=:lala" - assert list(clause.bindparams.keys()) == ['bar'] - assert set(clause2.bindparams.keys()) == set(['bar', 'lala']) + assert list(clause._bindparams.keys()) == ['bar'] + assert set(clause2._bindparams.keys()) == set(['bar', 'lala']) def test_select(self): s2 = select([t1]) |
