tests.sparql_tests module#
Test cases for the SPARQL API.
- class tests.sparql_tests.BnodeTests(*args, **kwargs)[source]#
Bases:
SparqlNodeTests
Tests for sparql.Bnode.
- abstract_class = False#
- object_under_test = _:Foo#
- class tests.sparql_tests.Container(value)[source]#
Bases:
object
Simple test container for return values.
Create container.
- class tests.sparql_tests.LiteralTests(*args, **kwargs)[source]#
Bases:
SparqlNodeTests
Tests for sparql.Literal.
- abstract_class = False#
- object_under_test = value#
Bases:
object
Shared test placeholder.
Bases:
DisableSiteMixin
,TestCase
Tests encoding issues.
__repr__ should return type str.
__str__ should return type str.
Object should be a SparqlNode.
- class tests.sparql_tests.TestSparql(*args, **kwargs)[source]#
Bases:
CheckHostnameMixin
,ForceCacheMixin
,WikidataTestCase
Test SPARQL queries.
- abstract_class = False#
- cached = True#
- code = 'wikidata'#
- family = 'wikidata'#
- net = True#
- site = True#
- sites = {'wikidata:wikidata': {'code': 'wikidata', 'family': 'wikidata'}}#
- wikibase = True#
- class tests.sparql_tests.URITests(*args, **kwargs)[source]#
Bases:
SparqlNodeTests
Tests for sparql.URI.
- abstract_class = False#
- object_under_test = <http://foo.com>#