mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-23 06:29:58 +03:00
tests: inherit from rest_framework.versioning.BaseVersioning in tests/test_reverse.py
This commit is contained in:
parent
bd04ea61f1
commit
f4d97680d2
|
@ -3,6 +3,7 @@ from django.urls import NoReverseMatch, path
|
|||
|
||||
from rest_framework.reverse import reverse
|
||||
from rest_framework.test import APIRequestFactory
|
||||
from rest_framework.versioning import BaseVersioning
|
||||
|
||||
factory = APIRequestFactory()
|
||||
|
||||
|
@ -16,7 +17,7 @@ urlpatterns = [
|
|||
]
|
||||
|
||||
|
||||
class MockVersioningScheme:
|
||||
class MockVersioningScheme(BaseVersioning):
|
||||
|
||||
def __init__(self, raise_error=False):
|
||||
self.raise_error = raise_error
|
||||
|
|
Loading…
Reference in New Issue
Block a user