diff --git a/newrelic/config.py b/newrelic/config.py index 4e0912db8..292044a29 100644 --- a/newrelic/config.py +++ b/newrelic/config.py @@ -2162,11 +2162,6 @@ def _process_module_builtin_defaults(): ) _process_module_definition("flask_restful", "newrelic.hooks.component_flask_rest", "instrument_flask_rest") - _process_module_definition( - "flask_restplus.api", - "newrelic.hooks.component_flask_rest", - "instrument_flask_rest", - ) _process_module_definition( "flask_restx.api", "newrelic.hooks.component_flask_rest", diff --git a/tests/component_flask_rest/test_application.py b/tests/component_flask_rest/test_application.py index 67d60bc53..934eb5784 100644 --- a/tests/component_flask_rest/test_application.py +++ b/tests/component_flask_rest/test_application.py @@ -30,14 +30,12 @@ TEST_APPLICATION_PREFIX = "_test_application.create_app." if six.PY3 else "_test_application" -@pytest.fixture(params=["flask_restful", "flask_restplus", "flask_restx"]) +@pytest.fixture(params=["flask_restful", "flask_restx"]) def application(request): from _test_application import get_test_application if request.param == "flask_restful": import flask_restful as module - elif request.param == "flask_restplus": - import flask_restplus as module elif request.param == "flask_restx": import flask_restx as module else: diff --git a/tox.ini b/tox.ini index 1fc5479d8..e06279107 100644 --- a/tox.ini +++ b/tox.ini @@ -206,11 +206,10 @@ deps = component_djangorestframework-djangorestframework0300: djangorestframework < 3.1 component_djangorestframework-djangorestframeworklatest: Django component_djangorestframework-djangorestframeworklatest: djangorestframework - component_flask_rest: flask<0.13 + component_flask_rest: flask component_flask_rest: flask-restful - component_flask_rest: flask-restplus - component_flask_rest: jinja2<3.1 - component_flask_rest: itsdangerous<2.1 + component_flask_rest: jinja2 + component_flask_rest: itsdangerous component_flask_rest-flaskrestxlatest: flask-restx component_flask_rest-flaskrestx051: flask-restx<1.0 component_graphqlserver: graphql-server[sanic,flask]==3.0.0b5