Находки в опенсорсе: Python
984 subscribers
4 photos
221 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