tox.ini: hide warnings

This commit is contained in:
Benjamin Dauvergne 2020-11-27 17:40:13 +01:00
parent af85af7bc4
commit e5b548d790
2 changed files with 7 additions and 11 deletions

View File

@ -26,7 +26,7 @@ from django.core.exceptions import ValidationError
from rest_framework.generics import ListAPIView
from rest_framework import serializers, pagination
from rest_framework.decorators import detail_route
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework import status
@ -97,8 +97,8 @@ def _get_cut_validation_accepted_mime_types():
])
@detail_route(methods=['get', 'post'], url_path='validate',
permission_classes=(api_views.DjangoPermission('custom_user.cut_validate_user'),))
@action(detail=True, methods=['get', 'post'], url_path='validate',
permission_classes=(api_views.DjangoPermission('custom_user.cut_validate_user'),))
def validate_cut(self, request, uuid):
user = self.get_object()
origin = get_origin(request)

12
tox.ini
View File

@ -72,12 +72,8 @@ commands =
[pytest]
junit_family=xunit2
filterwarnings =
error
# there is nothing we can do about that
ignore:defusedxml.lxml is no longer supported:DeprecationWarning:openpyxl.xml.functions
ignore:Using or importing the ABCs from 'collections':DeprecationWarning:django.*
ignore:Using user.is_authenticated\(\) and user.is_anonymous\(\) as a method is deprecated.::rest_framework\.*
# remind us later
once:.*staticfiles.*::django\..*
once:please use dns.resolver.resolve
once
ignore:::django\..*
ignore:::authentic2\..*
ignore:::rest_framework\..*
ignore:::gettext\..*