File tree Expand file tree Collapse file tree 4 files changed +13
-8
lines changed Expand file tree Collapse file tree 4 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -95,8 +95,10 @@ def create_app():
9595 app .config .from_object (CONFIG [environment ])
9696 app .wsgi_app = PrefixMiddleware (app .wsgi_app , prefix = app .config ["APPLICATION_ROOT" ])
9797
98- j_tracer = init_jaeger_tracer (app .config ["APP_NAME" ])
99- FlaskTracer (j_tracer , True , app )
98+
99+ if not app .config ["TESTING" ] and not app .config ["DEBUG" ]:
100+ j_tracer = init_jaeger_tracer (app .config ["APP_NAME" ])
101+ FlaskTracer (j_tracer , True , app )
100102
101103 db .init_app (app )
102104
Original file line number Diff line number Diff line change 11-r requirements.txt
22coverage==4.5.1
33coveralls==1.3.0
4- pylint==1.8.3
4+ nose==1.3.7
5+ pylint==1.8.3
6+ tox==2.7.0
Original file line number Diff line number Diff line change 3636 platforms = ["any" ],
3737 keywords = "python, microservices" ,
3838 url = 'https://github.com/python-microservices/microservices-scaffold' ,
39+ test_suite = 'nose.collector' ,
3940 packages = find_packages (),
40- zip_safe = True ,
41+ include_package_data = True ,
4142)
Original file line number Diff line number Diff line change 11[tox]
2- envlist = py36,py35
2+ envlist = py36
33
44[testenv]
55commands =
6- python {envbindir}/nosetests -xsv --with-coverage --logging-level =DEBUG
6+ coverage run {envbindir}/nosetests
7+
78install_command =
89 pip install {opts} {packages}
9- setenv =
10- PYTHONPATH ={toxinidir}/tests
10+
1111recreate = True
1212
1313[testenv:py36]
You can’t perform that action at this time.
0 commit comments