Skip to content
Snippets Groups Projects
Commit eda697d6 authored by James Graham's avatar James Graham
Browse files

Mark Cisco CityVerve tests as expected failure

parent d39f275c
Branches
Tags
No related merge requests found
import typing import typing
import unittest
from django.contrib.auth import get_user_model from django.contrib.auth import get_user_model
from django.test import Client, TestCase from django.test import Client, TestCase
...@@ -554,6 +556,8 @@ class DataSourceApiHyperCatTest(TestCase): ...@@ -554,6 +556,8 @@ class DataSourceApiHyperCatTest(TestCase):
self.assertLessEqual(1, len(data['data'])) self.assertLessEqual(1, len(data['data']))
# TODO test contents of 'data' list # TODO test contents of 'data' list
# CityVerve API is discontinued
@unittest.expectedFailure
def test_api_datasource_get_dataset_metadata(self): def test_api_datasource_get_dataset_metadata(self):
""" """
Test the :class:`DataSource` API functionality to retrieve dataset metadata. Test the :class:`DataSource` API functionality to retrieve dataset metadata.
...@@ -569,6 +573,8 @@ class DataSourceApiHyperCatTest(TestCase): ...@@ -569,6 +573,8 @@ class DataSourceApiHyperCatTest(TestCase):
self.assertLessEqual(1, len(data['data'])) self.assertLessEqual(1, len(data['data']))
# TODO test contents of 'data' list # TODO test contents of 'data' list
# CityVerve API is discontinued
@unittest.expectedFailure
def test_api_datasource_get_dataset_data(self): def test_api_datasource_get_dataset_data(self):
""" """
Test the :class:`DataSource` API functionality to retrieve dataset data. Test the :class:`DataSource` API functionality to retrieve dataset data.
......
import itertools import itertools
import typing import typing
import unittest
from django.test import TestCase from django.test import TestCase
...@@ -157,6 +158,8 @@ class ConnectorHyperCatTest(TestCase): ...@@ -157,6 +158,8 @@ class ConnectorHyperCatTest(TestCase):
self.assertEqual(k, self.assertEqual(k,
v.location) v.location)
# CityVerve API is discontinued
@unittest.expectedFailure
def test_plugin_get_subcatalogue_metadata(self): def test_plugin_get_subcatalogue_metadata(self):
connection = self._get_connection() connection = self._get_connection()
...@@ -179,6 +182,8 @@ class ConnectorHyperCatTest(TestCase): ...@@ -179,6 +182,8 @@ class ConnectorHyperCatTest(TestCase):
self.assertEqual('https://developer.cityverve.org.uk', self.assertEqual('https://developer.cityverve.org.uk',
_get_item_by_key_value(result, 'rel', 'urn:X-hypercat:rels:hasHomepage')['val']) _get_item_by_key_value(result, 'rel', 'urn:X-hypercat:rels:hasHomepage')['val'])
# CityVerve API is discontinued
@unittest.expectedFailure
def test_plugin_get_subcatalogue_datasets(self): def test_plugin_get_subcatalogue_datasets(self):
connection = self._get_connection() connection = self._get_connection()
...@@ -200,6 +205,8 @@ class ConnectorHyperCatTest(TestCase): ...@@ -200,6 +205,8 @@ class ConnectorHyperCatTest(TestCase):
for exp in expected: for exp in expected:
self.assertIn(exp, datasets) self.assertIn(exp, datasets)
# CityVerve API is discontinued
@unittest.expectedFailure
def test_plugin_get_subcatalogue_dataset_metadata(self): def test_plugin_get_subcatalogue_dataset_metadata(self):
connection = self._get_connection() connection = self._get_connection()
...@@ -228,6 +235,8 @@ class ConnectorHyperCatTest(TestCase): ...@@ -228,6 +235,8 @@ class ConnectorHyperCatTest(TestCase):
self.assertEqual('polling-station', self.assertEqual('polling-station',
_get_item_by_key_value(result, 'rel', 'urn:X-cityverve:rels:type')['val']) _get_item_by_key_value(result, 'rel', 'urn:X-cityverve:rels:type')['val'])
# CityVerve API is discontinued
@unittest.expectedFailure
def test_plugin_get_subcatalogue_dataset_data(self): def test_plugin_get_subcatalogue_dataset_data(self):
connection = self._get_connection() connection = self._get_connection()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment