Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selectively distinguish real serializers from mocked ones #1006 #1011

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

tfranzel
Copy link
Owner

This addresses an issue where we enter a code path that only works for real serializers, while the check also allows for objects covered by OpenApiSerializerExtension.
However when checking for customized ListSerializers, we are only interested in actual serializers so distinguish the cases.

@codecov
Copy link

codecov bot commented Jun 20, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (ae52f23) 98.54% compared to head (5fe55a1) 98.54%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1011   +/-   ##
=======================================
  Coverage   98.54%   98.54%           
=======================================
  Files          68       68           
  Lines        8324     8324           
=======================================
  Hits         8203     8203           
  Misses        121      121           
Impacted Files Coverage Δ
drf_spectacular/plumbing.py 97.05% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

This addresses an issue where we enter a code path that only
works for real serializers, while the check also allows for objects
covered by OpenApiSerializerExtension.
However when checking for customized ListSerializers, we are only
interested in actual serializers so distinguish the cases.
@tfranzel tfranzel force-pushed the smart_list_serializer_check branch from 79f2646 to 5fe55a1 Compare June 20, 2023 18:27
@tfranzel tfranzel merged commit e768e5e into master Jun 20, 2023
62 checks passed
@tfranzel tfranzel deleted the smart_list_serializer_check branch June 20, 2023 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant