zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
U
¸ý°dmã@svddlmZddlmZddlmZddlmZddlmZddlmZddlm    Z    dd    lm
Z
Gd
d „d ej ƒZ d S) é)Úfixtures)Úeq_)ÚColumn)ÚTableé)ÚInteger)Úselect)Útesting)Úunionc@szeZdZdZedd„ƒZedd„ƒZddd„Zd    d
„Zd d „Z    e
j j e
j j d d„ƒƒZe
j jdd„ƒZdd„Zdd„ZdS)ÚDeprecatedCompoundSelectTestTcCs*td|tdtddtdtƒtdtƒƒdS)NÚ
some_tableÚidT)Z primary_keyÚxÚy)rrr)ÚclsÚmetadata©rúad:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\sqlalchemy/testing/suite/test_deprecations.pyÚ define_tabless ûz*DeprecatedCompoundSelectTest.define_tablesc
Cs@| |jj ¡ddddœddddœddddœddddœg¡dS)Nér)r rrréé)ÚexecuteÚtablesr Úinsert)rÚ
connectionrrrÚ insert_datas
 
 
 
 
üþz(DeprecatedCompoundSelectTest.insert_datarcCst| ||¡ ¡|ƒdS)N)rrZfetchall)ÚselfÚconnrÚresultÚparamsrrrÚ_assert_result&sz+DeprecatedCompoundSelectTest._assert_resultc    Cst|jj}t|ƒ |jjdk¡}t|ƒ |jjdk¡}t||ƒ}t d¡"|     || 
|jj¡ddg¡W5QRXdS©NrrúAThe SelectBase.c and SelectBase.columns attributes are deprecated©rrr©rrr) rr rÚwhereÚcr r
r    Úexpect_deprecatedr!Úorder_by©rrÚtableÚs1Ús2Úu1rrrÚtest_plain_union)s
ÿ ÿz-DeprecatedCompoundSelectTest.test_plain_unionc    Cs||jj}t|ƒ |jjdk¡}t|ƒ |jjdk¡}t||ƒ ¡ ¡}t     d¡"| 
||  |jj¡ddg¡W5QRXdSr") rr rr&r'r r
Úaliasr    r(r!r)r*rrrÚ"_dont_test_select_from_plain_union>sÿ ÿz?DeprecatedCompoundSelectTest._dont_test_select_from_plain_unionc    Csš|jj}t|ƒ |jjdk¡ d¡ |jj¡}t|ƒ |jjdk¡ d¡ |jj¡}t||ƒ d¡}t     
d¡"|  || |jj¡ddg¡W5QRXdS©Nrrrr#r$r%) rr rr&r'r Úlimitr)r
r    r(r!r*rrrÚ&test_limit_offset_selectable_in_unionsLs&&ÿ ÿzCDeprecatedCompoundSelectTest.test_limit_offset_selectable_in_unionsc    CsŽ|jj}t|ƒ |jjdk¡ |jj¡}t|ƒ |jjdk¡ |jj¡}t||ƒ d¡}t     
d¡"|  || |jj¡ddg¡W5QRXdSr") rr rr&r'r r)r
r3r    r(r!r*rrrÚ"test_order_by_selectable_in_unions\s  ÿ ÿz?DeprecatedCompoundSelectTest.test_order_by_selectable_in_unionsc    Cs‚|jj}t|ƒ |jjdk¡ ¡}t|ƒ |jjdk¡ ¡}t||ƒ d¡}t     
d¡"|  ||  |jj¡ddg¡W5QRXdSr") rr rr&r'r Zdistinctr
r3r    r(r!r)r*rrrÚ"test_distinct_selectable_in_unionsksÿ ÿz?DeprecatedCompoundSelectTest.test_distinct_selectable_in_unionsc    Csª|jj}t|ƒ |jjdk¡ d¡ |jj¡ ¡ ¡}t|ƒ |jjdk¡ d¡ |jj¡ ¡ ¡}t    ||ƒ d¡}t
  d¡"|  || |jj¡ddg¡W5QRXdSr2) rr rr&r'r r3r)r0r
r    r(r!r*rrrÚ.test_limit_offset_aliased_selectable_in_unionsys4
ÿþý
ÿ    
ÿþý
ÿ    ÿ ÿzKDeprecatedCompoundSelectTest.test_limit_offset_aliased_selectable_in_unionsN)r)Ú__name__Ú
__module__Ú __qualname__Z __backend__Ú classmethodrrr!r/r1r    ÚrequiresZorder_by_col_from_unionZ/parens_in_union_contained_select_w_limit_offsetr4Z0parens_in_union_contained_select_wo_limit_offsetr5r6r7rrrrr s
    
 
 
r N) ÚrZ
assertionsrZschemarrrrr    r
Z
TablesTestr rrrrÚ<module>s