django-esi 8.0.0a1__py3-none-any.whl → 8.0.0a3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of django-esi might be problematic. Click here for more details.
- {django_esi-8.0.0a1.dist-info → django_esi-8.0.0a3.dist-info}/METADATA +3 -4
- {django_esi-8.0.0a1.dist-info → django_esi-8.0.0a3.dist-info}/RECORD +14 -13
- esi/__init__.py +2 -2
- esi/aiopenapi3/plugins.py +39 -0
- esi/app_settings.py +1 -1
- esi/exceptions.py +29 -0
- esi/locale/en/LC_MESSAGES/django.po +3 -3
- esi/locale/ru/LC_MESSAGES/django.po +8 -7
- esi/management/commands/generate_esi_stubs.py +33 -16
- esi/openapi_clients.py +154 -36
- esi/stubs.pyi +483 -567
- esi/tests/test_openapi.py +14 -0
- {django_esi-8.0.0a1.dist-info → django_esi-8.0.0a3.dist-info}/WHEEL +0 -0
- {django_esi-8.0.0a1.dist-info → django_esi-8.0.0a3.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from django.test import TestCase
|
|
2
|
+
from datetime import date
|
|
3
|
+
|
|
4
|
+
from esi.openapi_clients import ESIClientProvider
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class TestOpenapiClientProvider(TestCase):
|
|
8
|
+
|
|
9
|
+
def test_compatibilitydate_date_to_string(self):
|
|
10
|
+
testdate_1 = date(2024, 1, 1)
|
|
11
|
+
testdate_2 = date(2025, 8, 26)
|
|
12
|
+
|
|
13
|
+
self.assertEqual("2024-01-01", ESIClientProvider._date_to_string(testdate_1))
|
|
14
|
+
self.assertEqual("2025-08-26", ESIClientProvider._date_to_string(testdate_2))
|
|
File without changes
|
|
File without changes
|