Находки в опенсорсе: Python
853 subscribers
4 photos
128 links
Легкие задачки в опенсорсе из мира Python

Чат: @opensource_findings_chat
Download Telegram
Сделать msgspec опциональной зависимостью.
Сейчас она используется только для парсинга json, однако, она может не собраться по какой-то причине.
Нам нет никакой сложности сделать модуль с нативным json для парсинга, если ее нет.

Задача на несколько часов.

https://github.com/wemake-services/django-modern-rest/issues/43

#django_modern_rest
👍5
New issue to wemake-services/django-modern-rest by @sobolevn
Write tests for "double validation" problem
(#85)

We need to be sure that double validation does not happen. Ever.
See what "double validation" is: fastapi/fastapi#3021

To be sure, we need to write tests for it.

Tests would be rather easy to write:

• One for @modify
• One for @validate
• One for raw data return
 Also test disabled response validation mode to do 0 validations.

See the attached issue to learn how to make sure that double validation happened.
No matter what - we need to do a 1 or 0 validations.

#django_modern_rest #help_wanted #enhancement #good_first_issue

sent via relator
🔥1
New issue to wemake-services/django-modern-rest by @sobolevn
Split `
rest` app into several django apps (#171)

Our integration tests need some love.
Please, split this big app into smaller and more managable ones:

• basic parsing can stay there
• openapi should go into its own app
• middleware stuff should go into other app as well
 https://github.com/wemake-services/django-modern-rest/blob/master/django_test_app/server/apps/rest/views.py

Also, make sure that test files are also different in tests/test_integration

#django_modern_rest #help_wanted #good_first_issue #enhancement

sent via relator