pull/793/head
Piero Toffanin 2020-01-21 15:00:32 -05:00
rodzic d7302d5573
commit ec6b74b45b
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -28,6 +28,7 @@ class TestApiPreset(BootTestCase):
self.assertTrue(Preset.objects.filter(name="Buildings", system=True).exists())
self.assertTrue(Preset.objects.filter(name="3D Model", system=True).exists())
self.assertTrue(Preset.objects.filter(name="Point of Interest", system=True).exists())
self.assertTrue(Preset.objects.filter(name="Multispectral", system=True).exists())
def test_preset(self):
client = APIClient()
@ -57,7 +58,7 @@ class TestApiPreset(BootTestCase):
self.assertTrue(res.status_code == status.HTTP_200_OK)
# Only ours and global presets are available
self.assertTrue(len(res.data) == 12)
self.assertTrue(len(res.data) == 13)
self.assertTrue('My Local Preset' in [preset['name'] for preset in res.data])
self.assertTrue('High Resolution' in [preset['name'] for preset in res.data])
self.assertTrue('Global Preset #1' in [preset['name'] for preset in res.data])