Backend fixes

This commit is contained in:
IRBorisov 2023-11-01 14:48:06 +03:00
parent 3561a7c7e0
commit e1d82d4b3a
4 changed files with 13 additions and 4 deletions

View File

@ -355,6 +355,12 @@ class TestRSFormViewset(APITestCase):
self.assertEqual(response.data['typification'], 'LOGIC')
self.assertEqual(response.data['valueClass'], 'value')
response = self.client.post(
f'/api/rsforms/{self.unowned.item.id}/check',
data=data, format='json'
)
self.assertEqual(response.status_code, 200)
def test_resolve(self):
schema = RSForm.create(title='Test')
x1 = schema.insert_at(1, 'X1', CstType.BASE)

View File

@ -1,7 +1,7 @@
tzdata==2023.3
Django==4.2.6
Django==4.2.7
djangorestframework==3.14.0
django-cors-headers==4.2.0
django-cors-headers==4.3.0
django-filter==23.3
drf-spectacular==0.26.5
coreapi==2.3.3

View File

@ -13,4 +13,7 @@ razdel
mypy
pylint
coverage
djangorestframework-stubs[compatible-mypy]
djangorestframework-stubs[compatible-mypy]
psycopg2-binary
gunicorn

View File

@ -38,7 +38,7 @@ function CreateEnv() {
function InstallPips() {
& $python -m pip install --upgrade pip
& $python -m pip install -r requirements_dev.txt
& $python -m pip install -r requirements_dev.txt --no-warn-script-location
}
function InstallImports() {