Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PEDASI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Research Software Group
PEDASI
Commits
eda697d6
Commit
eda697d6
authored
6 years ago
by
James Graham
Browse files
Options
Downloads
Patches
Plain Diff
Mark Cisco CityVerve tests as expected failure
parent
d39f275c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/tests.py
+6
-0
6 additions, 0 deletions
api/tests.py
datasources/tests/test_connectors_hypercat.py
+9
-0
9 additions, 0 deletions
datasources/tests/test_connectors_hypercat.py
with
15 additions
and
0 deletions
api/tests.py
+
6
−
0
View file @
eda697d6
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.
...
...
This diff is collapsed.
Click to expand it.
datasources/tests/test_connectors_hypercat.py
+
9
−
0
View file @
eda697d6
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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment