%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/noseplugin.pyc

�
�M!Vc@s�dZyddlZWn!ek
r9ddlmZnXddlZddlZddlmZda
ejd
kZdefd	��YZ
dS(s�
Enhance nose with extra options and behaviors for running SQLAlchemy tests.


NOTE:  copied/adapted from SQLAlchemy master for backwards compatibility;
this should be removable when Alembic targets SQLAlchemy 1.0.0.

i����Ni(tplugin_base(tPluginiitNoseSQLAlchemycBs�eZeZdZdZejd�Zd�Z	d�Z
d�Zd�Zd�Z
d�Zd	�Zd
�Zd�Zd�ZRS(
tsqla_testingidcsFtj|||�|j��fd�}tj|�tj�dS(NcsE|jdd���r4�fd�}||d<n�||�dS(Ntcallbackcs�|||�dS(N((toptiontopt_strtvaluetparser(t	callback_(sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pytwrap_.s(tpoptNone(tnametkwR
(topt(R	sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pytmake_option+s

(Rtoptionst
add_optionRt
setup_optionstread_config(tselfRtenvR((RsR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pyR's
	
cCs:tt|�j||�tj|�tj|j�dS(N(tsuperRt	configureRt	pre_begintset_coverage_flagtenable_plugin_coverage(RRtconf((sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pyR6s
cCsddlmatj�dS(Ni����(tfixtures(talembic.testingRRt
post_begin(R((sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pytbegin<scCsdS(Nt((Rttest((sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pytdescribeTestBscCstS(N(tFalse(Rtfn((sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pytwantFunctionEscCsDtr+t|jd�stS|jj}n	|j}tj||�S(Ntcls(tpy3kthasattrt__self__R$R'tim_classRtwant_method(RR%R'((sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pyt
wantMethodHs	cCs
tj|�S(N(Rt
want_class(RR'((sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pyt	wantClassQscCs2tj||jjj|jj|jjj�dS(N(Rtbefore_testR"R't
__module__tmethodt__name__(RR"((sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pyt
beforeTestTscCstj|�dS(N(Rt
after_test(RR"((sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pyt	afterTestZscCs8t|t�s#t|tj�r'dStj|�dS(N(t
isinstancettypet
issubclassRtTestBaseRtstart_test_class(Rtctx((sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pytstartContext]scCs8t|t�s#t|tj�r'dStj|�dS(N(R7R8R9RR:Rtstop_test_class(RR<((sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pytstopContextcs(R3R1tTruetenabledR
tscoretostenvironRRR R#R&R-R/R4R6R=R?(((sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pyR!s										(ii(t__doc__talembic_plugin_baseRtImportErrorR!RCtsystnose.pluginsRRRtversion_infoR(R(((sR/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/plugin/noseplugin.pyt<module>s


Zerion Mini Shell 1.0