%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pyc

�
�M!Vc@sXdZyddlZWn!ek
r9ddlmZnXddlZejdkZddlZddl	Z	ddl
Z
ddlZddlZyddl
Z
eZWnek
r�eZnXd�Zd�Zd	�Zerejd�Zd
�Zd�Znd�Zd
�Zdad�Zd�Zd�Zd�Zd�Z d�Z!dS(s�NOTE:  copied/adapted from SQLAlchemy master for backwards compatibility;
   this should be removable when Alembic targets SQLAlchemy 1.0.0.
i����Ni(tplugin_baseiics9|jd���fd�}tj|�tj�dS(Nt
sqlalchemycsX|jdd���rDdtjf�fd��Y}||d<n�j||�dS(NtcallbacktCallableActioncseZd�fd�ZRS(cs�|||�dS(N((tselftparsert	namespacetvaluest
option_string(t	callback_(sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pyt__call__$sN(t__name__t
__module__tNoneR
((R	(sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pyR#staction(tpopR
targparsetActiont	addoption(tnametkwR(tgroup(R	sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pytmake_option s

(tgetgroupRt
setup_optionstread_config(RR((RsT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pytpytest_addoptions
cCsrt|d�r6tj|j�tj|jd�ntj|j�tt|jdt	��}tj
|�dS(Nt
slaveinputtfollower_identt
cov_source(thasattrRt!restore_important_follower_configRtconfigure_followert	pre_begintoptiontbooltgetattrtFalsetset_coverage_flag(tconfigtcoverage((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pytpytest_configure/scCstj�dS(N(Rt
post_begin(tsession((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pytpytest_sessionstart<scCsOtj|j�dtt�|jd<ddlm}|j|jd�dS(Nstest_%sRi����(t	provision(Rt!memoize_important_follower_configRtnextt_follower_counttalembic.testingR-tcreate_follower_db(tnodeR-((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pytpytest_configure_nodeBscCs(ddlm}|j|jd�dS(Ni����(R-R(R1R-tdrop_follower_dbR(R3terrorR-((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pytpytest_testnodedownLscCsgtjt�}g|D]!}t|jtj�r|^q|(td�|D��}x�|D]�}x�tj	|j
|jj�D]g}||j
k	r}||j
}xBtj|j
d|jj�j�D]}	|j|	j��q�Wq}q}Wq[Wg}
xX|D]P}|jj
|kr<|
j||jj
�g||jj
(q�|
j|�q�Wt|
dd��|(dS(Ncss|]}|jVqdS(N(tparent(t.0titem((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pys	<genexpr>`sR8tkeycSs%|jjjj|jjj|jfS(N(R8R(R:((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pyt<lambda>vs(tcollectionstdefaultdicttlistt
isinstanceR8tpytesttInstancetsetRtgenerate_sub_teststclstmoduletClassRtcollecttextendtappendtsorted(R+R'titemst
rebuilt_itemsR:ttest_classest
test_classtsub_clstlist_tinsttnewitems((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pytpytest_collection_modifyitemsQs(,
	
		"
cCs�tj|�r1tj|�r1tj|d|�Stj|�rzt|tj�rztj	|j
|�rztj|d|�SgSdS(NR8(tinspecttisclassRt
want_classRARGt
isfunctionR@RBtwant_methodREtFunction(t	collectorRtobj((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pytpytest_pycollect_makeitem}scsqt�tj�sdStdkrct�jj��jja�fd�}�jjj|�nt��dS(Ncst�jj�dadS(N(tclass_teardownR8R
t_current_class((R:(sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pytfinalize�s(	R@RARZR_R
tclass_setupR8taddfinalizert
test_setup(R:R`((R:sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pytpytest_runtest_setup�scCst|�dS(N(t
test_teardown(R:((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pytpytest_runtest_teardown�scCs,tj||jjj|jj|j�dS(N(Rtbefore_testR8RFRRER(R:((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pyRc�scCstj|�dS(N(Rt
after_test(R:((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pyRe�scCstj|j�dS(N(Rtstart_test_classRE(R:((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pyRa�scCstj|j�dS(N(Rtstop_test_classRE(R:((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pyR^�s(ii("t__doc__talembic_plugin_baseRtImportErrorttsystversion_infotpy3kRARRUR=t	itertoolstxdisttTruet	has_xdistR%RR)R,tcountR0R4R7RTR]R
R_RdRfRcReRaR^(((sT/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/pytestplugin.pyt<module>s@



		
		
	,	
					

Zerion Mini Shell 1.0