Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Oct 30, 2023
1 parent 2be32a1 commit 6ad7afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g3w-admin/qdjango/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,7 @@ def test_field_formatter_api_param(self):
'fformatter': 'ISO2_CODE'
}).content)

self.assertEqual(resp['data'], [['AD', 'Andorra (AD)'], ['AL', 'Shqiperia (AL)'], ['AT', '�sterreich (AT)'], ['BA', 'Bosna i Hercegovina (BA)'], ['BE', 'Belgique/Belgie (BE)'], ['BG', 'Bulgaria (BG)'], ['BY', 'Byelarus (BY)'], ['CH', 'Schweiz (German), Suisse (French), Svizzera (Italian) (CH)'], ['CZ', 'Ceska Republika (CZ)'], ['DE', 'Deutschland (DE)'], ['DK', 'Danmark (DK)'], ['EE', 'Eesti Vabariik (EE)'], ['ES', 'Espa�a (ES)'], ['FI', 'Suomen Tasavalta (FI)'], ['FR', 'France (FR)'], ['GB', 'United Kingdom (GB)'], ['GI', 'Gibraltar (GI)'], ['GR', 'Ellas or Ellada (GR)'], ['HR', 'Hrvatska (HR)'], ['HU', 'Magyarorszag (HU)'], ['IE', '�ire (IE)'], ['IT', 'Italia (IT)'], ['LT', 'Lietuva (LT)'], ['LU', 'Luxembourg, Letzebuerg (LU)'], ['LV', 'Latvija (LV)'], ['MC', 'Monaco (MC)'], ['MD', ''], ['ME', 'Crna Gora (ME)'], ['MK', ''], ['MT', 'Malta (MT)'], ['NL', 'Nederland (NL)'], ['NO', 'Norge (NO)'], ['PL', 'Polska (PL)'], ['PT', 'Portugal (PT)'], ['RO', 'Romania (RO)'], ['RS', ''], ['RU', ''], ['SE', 'Sverige (SE)'], ['SI', 'Slovenija (SI)'], ['SK', ''], ['TR', 'Turkiye (TR)'], ['UA', 'Ukrayina (UA)']])
self.assertEqual(resp['data'], [['AD', 'Andorra (AD)'], ['AL', 'Shqiperia (AL)'], ['AM', 'Hayastan (AM)'], ['AT', '�sterreich (AT)'], ['AZ', 'Azarbaycan (AZ)'], ['BA', 'Bosna i Hercegovina (BA)'], ['BE', 'Belgique/Belgie (BE)'], ['BG', 'Bulgaria (BG)'], ['BY', 'Byelarus (BY)'], ['CH', 'Schweiz (German), Suisse (French), Svizzera (Italian) (CH)'], ['CZ', 'Ceska Republika (CZ)'], ['DE', 'Deutschland (DE)'], ['DK', 'Danmark (DK)'], ['EE', 'Eesti Vabariik (EE)'], ['ES', 'Espa�a (ES)'], ['FI', 'Suomen Tasavalta (FI)'], ['FO', 'Foroyar (FO)'], ['FR', 'France (FR)'], ['GB', 'United Kingdom (GB)'], ['GE', "Sak'art'velo (GE)"], ['GG', 'Guernsey (GG)'], ['GI', 'Gibraltar (GI)'], ['GR', 'Ellas or Ellada (GR)'], ['HR', 'Hrvatska (HR)'], ['HU', 'Magyarorszag (HU)'], ['IE', '�ire (IE)'], ['IM', 'Isle of Man (IM)'], ['IS', 'Lyoveldio Island (IS)'], ['IT', 'Italia (IT)'], ['JE', 'Jersey (JE)'], ['LI', 'Liechtenstein (LI)'], ['LT', 'Lietuva (LT)'], ['LU', 'Luxembourg, Letzebuerg (LU)'], ['LV', 'Latvija (LV)'], ['MC', 'Monaco (MC)'], ['MD', ''], ['ME', 'Crna Gora (ME)'], ['MK', ''], ['MT', 'Malta (MT)'], ['NL', 'Nederland (NL)'], ['NO', 'Norge (NO)'], ['PL', 'Polska (PL)'], ['PT', 'Portugal (PT)'], ['RO', 'Romania (RO)'], ['RS', ''], ['RU', ''], ['SE', 'Sverige (SE)'], ['SI', 'Slovenija (SI)'], ['SJ', 'Svalbard (SJ)'], ['SK', ''], ['SM', 'San Marino (SM)'], ['TR', 'Turkiye (TR)'], ['UA', 'Ukrayina (UA)']])

# Test ValueRelation
pois = Layer.objects.get(
Expand Down

0 comments on commit 6ad7afe

Please sign in to comment.