Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-20.04

strategy:
fail-fast: false
matrix:
python-version:
- '3.6'
Expand Down
6 changes: 2 additions & 4 deletions docs/api-guide/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ from rest_framework.response import Response

@cache_page(60 * 15)
@vary_on_cookie
@api_view(['GET'])
@api_view(["GET"])
def get_user_list(request):
content = {
'user_feed': request.user.get_user_feed()
}
content = {"user_feed": request.user.get_user_feed()}
return Response(content)
```

Expand Down
2 changes: 2 additions & 0 deletions tests/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from unittest.mock import patch

import pytest
from django import VERSION as DJANGO_VERSION

try:
import pytz
Expand Down Expand Up @@ -672,6 +673,7 @@ def test_valid_inputs(self, *args):
assert self.field.run_validation(input_value) == expected_output, \
'input value: {}'.format(repr(input_value))

@pytest.mark.xfail(pytz and DJANGO_VERSION >= (5, 0), reason="Django v5 drops support for pytz")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it'll skip a whole load of tests regardless of if pytz is relevant to that particular test case or not.

def test_invalid_inputs(self, *args):
"""
Ensure that invalid values raise the expected validation error.
Expand Down