diff --git a/inventory_provider/routes/testing.py b/inventory_provider/routes/testing.py index 039ea410a8c4a5591aac29d9f0d95e331c274c7e..16f1d670265c555f20938d5e2099fe5eb660f0c8 100644 --- a/inventory_provider/routes/testing.py +++ b/inventory_provider/routes/testing.py @@ -5,7 +5,6 @@ routes = Blueprint("inventory-data-testing-support-routes", __name__) @routes.route("/flushdb", methods=['GET', 'POST']) -@common.require_accepts_json def flushdb(): common.get_redis().flushdb() return Response('OK') diff --git a/test/test_testing_routes.py b/test/test_testing_routes.py index e5f0bc4638b99cc89ac94dee170be7e54b4d24a0..44ae19a006225b9386cebb8eba3d0b71f62a9d72 100644 --- a/test/test_testing_routes.py +++ b/test/test_testing_routes.py @@ -1,14 +1,4 @@ -import json -import jsonschema - -DEFAULT_REQUEST_HEADERS = { - "Content-type": "application/json", - "Accept": ["application/json"] -} - def test_flushdb(client): - rv = client.post( - "/testing/flushdb", - headers=DEFAULT_REQUEST_HEADERS) + rv = client.post("/testing/flushdb") assert rv.status_code == 200