tox.ini: hide warnings
This commit is contained in:
parent
af85af7bc4
commit
e5b548d790
|
@ -26,7 +26,7 @@ from django.core.exceptions import ValidationError
|
||||||
|
|
||||||
from rest_framework.generics import ListAPIView
|
from rest_framework.generics import ListAPIView
|
||||||
from rest_framework import serializers, pagination
|
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.response import Response
|
||||||
from rest_framework import status
|
from rest_framework import status
|
||||||
|
|
||||||
|
@ -97,8 +97,8 @@ def _get_cut_validation_accepted_mime_types():
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
@detail_route(methods=['get', 'post'], url_path='validate',
|
@action(detail=True, methods=['get', 'post'], url_path='validate',
|
||||||
permission_classes=(api_views.DjangoPermission('custom_user.cut_validate_user'),))
|
permission_classes=(api_views.DjangoPermission('custom_user.cut_validate_user'),))
|
||||||
def validate_cut(self, request, uuid):
|
def validate_cut(self, request, uuid):
|
||||||
user = self.get_object()
|
user = self.get_object()
|
||||||
origin = get_origin(request)
|
origin = get_origin(request)
|
||||||
|
|
12
tox.ini
12
tox.ini
|
@ -72,12 +72,8 @@ commands =
|
||||||
[pytest]
|
[pytest]
|
||||||
junit_family=xunit2
|
junit_family=xunit2
|
||||||
filterwarnings =
|
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
|
once
|
||||||
|
ignore:::django\..*
|
||||||
|
ignore:::authentic2\..*
|
||||||
|
ignore:::rest_framework\..*
|
||||||
|
ignore:::gettext\..*
|
||||||
|
|
Loading…
Reference in New Issue