Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Nov 23, 2023
1 parent 5f13521 commit 3228379
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 8 additions & 0 deletions ricerca_app/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,8 @@ def getAttivitaFormativaWithSubModules(af_id, language):
'des',
'cds__cds_cod',
'cds__cds_id',
'cds__nome_cds_it',
'cds__nome_cds_eng',
'pds_cod',
'pds_des',
'af_gen_des_eng',
Expand All @@ -1749,6 +1751,8 @@ def getAttivitaFormativaWithSubModules(af_id, language):
'didatticacopertura__coper_peso',
'cds__cds_cod',
'cds__cds_id',
'cds__nome_cds_it',
'cds__nome_cds_eng',
'pds_cod',
'pds_des',
)
Expand All @@ -1771,6 +1775,8 @@ def getAttivitaFormativaWithSubModules(af_id, language):
'didatticacopertura__coper_peso',
'cds__cds_cod',
'cds__cds_id',
'cds__nome_cds_it',
'cds__nome_cds_eng',
'pds_cod',
'pds_des',
)
Expand All @@ -1797,6 +1803,8 @@ def getAttivitaFormativaWithSubModules(af_id, language):
'didatticacopertura__coper_peso',
'cds__cds_cod',
'cds__cds_id',
'cds__nome_cds_it',
'cds__nome_cds_eng',
'pds_cod',
'pds_des',
)
Expand Down
5 changes: 1 addition & 4 deletions ricerca_app/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5970,13 +5970,11 @@ def test_apisitowebcdsdetail(self):

# check url
res = req.get(url)

assert res.status_code == 200

# GET

res = req.get(url)
assert res.json()['results']['Id'] == 1
assert res.json()['results']['CDSCOD'] == '1'



Expand Down Expand Up @@ -6412,5 +6410,4 @@ def test_apisitiwebcdsstudyplans(self):

data = {'cds_cod': '1', 'year': 2022}
res = req.get(url, data=data)
print(res.json())
assert len(res.json()['results']) == 1

0 comments on commit 3228379

Please sign in to comment.