mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-27 05:20:36 +03:00
Backend fixes
This commit is contained in:
parent
3561a7c7e0
commit
e1d82d4b3a
|
@ -355,6 +355,12 @@ class TestRSFormViewset(APITestCase):
|
||||||
self.assertEqual(response.data['typification'], 'LOGIC')
|
self.assertEqual(response.data['typification'], 'LOGIC')
|
||||||
self.assertEqual(response.data['valueClass'], 'value')
|
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):
|
def test_resolve(self):
|
||||||
schema = RSForm.create(title='Test')
|
schema = RSForm.create(title='Test')
|
||||||
x1 = schema.insert_at(1, 'X1', CstType.BASE)
|
x1 = schema.insert_at(1, 'X1', CstType.BASE)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
tzdata==2023.3
|
tzdata==2023.3
|
||||||
Django==4.2.6
|
Django==4.2.7
|
||||||
djangorestframework==3.14.0
|
djangorestframework==3.14.0
|
||||||
django-cors-headers==4.2.0
|
django-cors-headers==4.3.0
|
||||||
django-filter==23.3
|
django-filter==23.3
|
||||||
drf-spectacular==0.26.5
|
drf-spectacular==0.26.5
|
||||||
coreapi==2.3.3
|
coreapi==2.3.3
|
||||||
|
|
|
@ -14,3 +14,6 @@ mypy
|
||||||
pylint
|
pylint
|
||||||
coverage
|
coverage
|
||||||
djangorestframework-stubs[compatible-mypy]
|
djangorestframework-stubs[compatible-mypy]
|
||||||
|
|
||||||
|
psycopg2-binary
|
||||||
|
gunicorn
|
|
@ -38,7 +38,7 @@ function CreateEnv() {
|
||||||
|
|
||||||
function InstallPips() {
|
function InstallPips() {
|
||||||
& $python -m pip install --upgrade pip
|
& $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() {
|
function InstallImports() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user