Находки в опенсорсе: Python
1.06K subscribers
5 photos
332 links
Легкие задачки в опенсорсе из мира Python

Чат: @opensource_findings_chat
Download Telegram
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Add 3 more tests for component schema generation (#603)


There are several cases that we don't cover in tests/test_unit/test_openapi/test_schema_snapshots.py

1. We need to test Query component schema generation with one field in __dmr_force_list__ and one other regular field

 django-modern-rest/tests/test_unit/test_openapi/test_schema_snapshots.py

 Line 66 in 8555cd5

2. We need to test Query component with at least one field in

 django-modern-rest/tests/test_unit/test_openapi/test_schema_snapshots.py

 Line 67 in 8555cd5

These corner cases can just be added to the existing _QueryModel

1. We also need to test at least one file field as a list, add one field to __dmr_force_list__ for FileMetadata component as well

 django-modern-rest/tests/test_unit/test_openapi/test_schema_snapshots.py

 Line 122 in 8555cd5

This can be added to _SeveralFiles model.

This is a super easy issue for first-timers only :)


#enhancement #good_first_issue #help_wanted #python #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Refactor `dmr/security/jwt/auth.py` and `dmr/security/jwt/cookie.py` (#1321)


Currently we store JWT's auth as:

dmr/security/jwt/auth.py for headers
dmr/security/jwt/cookie.py for cookies

But, Token auth uses:

dmr/security/token/auth/header.py
dmr/security/token/auth/cookie.py

Which is better. We need to refactor the JWT layout to be the same.

(please, do not take this issue before the 1st of September)


#good_first_issue #help_wanted #python #opensource_september #django_modern_rest
sent via relator