|
7 | 7 | from django.urls import include, path |
8 | 8 |
|
9 | 9 | from rest_framework import ( |
10 | | - RemovedInDRF317Warning, filters, generics, pagination, permissions, |
| 10 | + RemovedInDRF318Warning, filters, generics, pagination, permissions, |
11 | 11 | serializers |
12 | 12 | ) |
13 | 13 | from rest_framework.compat import coreapi, coreschema |
@@ -1445,42 +1445,42 @@ def test_schema_handles_exception(): |
1445 | 1445 |
|
1446 | 1446 | @pytest.mark.skipif(not coreapi, reason='coreapi is not installed') |
1447 | 1447 | def test_coreapi_deprecation(): |
1448 | | - with pytest.warns(RemovedInDRF317Warning): |
| 1448 | + with pytest.warns(RemovedInDRF318Warning): |
1449 | 1449 | SchemaGenerator() |
1450 | 1450 |
|
1451 | | - with pytest.warns(RemovedInDRF317Warning): |
| 1451 | + with pytest.warns(RemovedInDRF318Warning): |
1452 | 1452 | AutoSchema() |
1453 | 1453 |
|
1454 | | - with pytest.warns(RemovedInDRF317Warning): |
| 1454 | + with pytest.warns(RemovedInDRF318Warning): |
1455 | 1455 | ManualSchema({}) |
1456 | 1456 |
|
1457 | | - with pytest.warns(RemovedInDRF317Warning): |
| 1457 | + with pytest.warns(RemovedInDRF318Warning): |
1458 | 1458 | deprecated_filter = OrderingFilter() |
1459 | 1459 | deprecated_filter.get_schema_fields({}) |
1460 | 1460 |
|
1461 | | - with pytest.warns(RemovedInDRF317Warning): |
| 1461 | + with pytest.warns(RemovedInDRF318Warning): |
1462 | 1462 | deprecated_filter = BaseFilterBackend() |
1463 | 1463 | deprecated_filter.get_schema_fields({}) |
1464 | 1464 |
|
1465 | | - with pytest.warns(RemovedInDRF317Warning): |
| 1465 | + with pytest.warns(RemovedInDRF318Warning): |
1466 | 1466 | deprecated_filter = SearchFilter() |
1467 | 1467 | deprecated_filter.get_schema_fields({}) |
1468 | 1468 |
|
1469 | | - with pytest.warns(RemovedInDRF317Warning): |
| 1469 | + with pytest.warns(RemovedInDRF318Warning): |
1470 | 1470 | paginator = BasePagination() |
1471 | 1471 | paginator.get_schema_fields({}) |
1472 | 1472 |
|
1473 | | - with pytest.warns(RemovedInDRF317Warning): |
| 1473 | + with pytest.warns(RemovedInDRF318Warning): |
1474 | 1474 | paginator = PageNumberPagination() |
1475 | 1475 | paginator.get_schema_fields({}) |
1476 | 1476 |
|
1477 | | - with pytest.warns(RemovedInDRF317Warning): |
| 1477 | + with pytest.warns(RemovedInDRF318Warning): |
1478 | 1478 | paginator = LimitOffsetPagination() |
1479 | 1479 | paginator.get_schema_fields({}) |
1480 | 1480 |
|
1481 | | - with pytest.warns(RemovedInDRF317Warning): |
| 1481 | + with pytest.warns(RemovedInDRF318Warning): |
1482 | 1482 | paginator = CursorPagination() |
1483 | 1483 | paginator.get_schema_fields({}) |
1484 | 1484 |
|
1485 | | - with pytest.warns(RemovedInDRF317Warning): |
| 1485 | + with pytest.warns(RemovedInDRF318Warning): |
1486 | 1486 | is_enabled() |
0 commit comments