@@ -33,6 +33,10 @@ def pytest_addoption(parser):
3333 parser .addoption ('--sagemaker-client-config' , action = 'store' , default = None )
3434 parser .addoption ('--sagemaker-runtime-config' , action = 'store' , default = None )
3535 parser .addoption ('--boto-config' , action = 'store' , default = None )
36+ parser .addoption ('--tf-full-version' , action = 'store' , default = TF_VERSION )
37+ parser .addoption ('--mxnet-full-version' , action = 'store' , default = MXNET_VERSION )
38+ parser .addoption ('--chainer-full-version' , action = 'store' , default = CHAINER_VERSION )
39+ parser .addoption ('--pytorch-full-version' , action = 'store' , default = PYTORCH_VERSION )
3640
3741
3842@pytest .fixture (scope = 'session' )
@@ -96,21 +100,21 @@ def chainer_version(request):
96100 return request .param
97101
98102
99- @pytest .fixture (scope = 'module' , params = [ TF_VERSION ] )
103+ @pytest .fixture (scope = 'module' )
100104def tf_full_version (request ):
101- return request .param
105+ return request .config . getoption ( '--tf-full-version' )
102106
103107
104- @pytest .fixture (scope = 'module' , params = [ MXNET_VERSION ] )
108+ @pytest .fixture (scope = 'module' )
105109def mxnet_full_version (request ):
106- return request .param
110+ return request .config . getoption ( '--mxnet-full-version' )
107111
108112
109- @pytest .fixture (scope = 'module' , params = [ PYTORCH_VERSION ] )
113+ @pytest .fixture (scope = 'module' )
110114def pytorch_full_version (request ):
111- return request .param
115+ return request .config . getoption ( '--pytorch-full-version' )
112116
113117
114- @pytest .fixture (scope = 'module' , params = [ CHAINER_VERSION ] )
118+ @pytest .fixture (scope = 'module' )
115119def chainer_full_version (request ):
116- return request .param
120+ return request .config . getoption ( '--chainer-full-version' )
0 commit comments