summaryrefslogtreecommitdiff
path: root/test/sql/test_generative.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-01-17 20:43:35 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2010-01-17 20:43:35 +0000
commit151fa4e75ce951e42068b3a5785e06a8ecf4dd44 (patch)
tree8b3958e357e37192fe4c233fa181e35ccc63096a /test/sql/test_generative.py
parent2b1937a31e5b5d8de56f266ec7692a3d0dd90976 (diff)
downloadsqlalchemy-151fa4e75ce951e42068b3a5785e06a8ecf4dd44.tar.gz
statement_options -> execution_options
Diffstat (limited to 'test/sql/test_generative.py')
-rw-r--r--test/sql/test_generative.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/sql/test_generative.py b/test/sql/test_generative.py
index a9a1f59dd..893f2abd7 100644
--- a/test/sql/test_generative.py
+++ b/test/sql/test_generative.py
@@ -785,27 +785,27 @@ class SelectTest(TestBase, AssertsCompiledSQL):
self.assert_compile(select_copy, "SELECT FOOBER table1.col1, table1.col2, table1.col3 FROM table1")
self.assert_compile(s, "SELECT table1.col1, table1.col2, table1.col3 FROM table1")
- def test_statement_options(self):
- s = select().statement_options(foo='bar')
- s2 = s.statement_options(bar='baz')
- s3 = s.statement_options(foo='not bar')
+ def test_execution_options(self):
+ s = select().execution_options(foo='bar')
+ s2 = s.execution_options(bar='baz')
+ s3 = s.execution_options(foo='not bar')
# The original select should not be modified.
- assert s._statement_options == dict(foo='bar')
- # s2 should have its statement_options based on s, though.
- assert s2._statement_options == dict(foo='bar', bar='baz')
- assert s3._statement_options == dict(foo='not bar')
-
- def test_statement_options_in_kwargs(self):
- s = select(statement_options=dict(foo='bar'))
- s2 = s.statement_options(bar='baz')
+ assert s._execution_options == dict(foo='bar')
+ # s2 should have its execution_options based on s, though.
+ assert s2._execution_options == dict(foo='bar', bar='baz')
+ assert s3._execution_options == dict(foo='not bar')
+
+ def test_execution_options_in_kwargs(self):
+ s = select(execution_options=dict(foo='bar'))
+ s2 = s.execution_options(bar='baz')
# The original select should not be modified.
- assert s._statement_options == dict(foo='bar')
- # s2 should have its statement_options based on s, though.
- assert s2._statement_options == dict(foo='bar', bar='baz')
+ assert s._execution_options == dict(foo='bar')
+ # s2 should have its execution_options based on s, though.
+ assert s2._execution_options == dict(foo='bar', bar='baz')
- def test_statement_options_in_text(self):
- s = text('select 42', statement_options=dict(foo='bar'))
- assert s._statement_options == dict(foo='bar')
+ def test_execution_options_in_text(self):
+ s = text('select 42', execution_options=dict(foo='bar'))
+ assert s._execution_options == dict(foo='bar')
class InsertTest(TestBase, AssertsCompiledSQL):
"""Tests the generative capability of Insert"""