wikidataquery_tests

Tests in tests.wikidataquery_tests:

Available tests

class tests.wikidataquery_tests.TestApiFunctions(*args, **kwargs)[source]

Test WikiDataQuery API functions.

testQueries()[source]

Test Queries and check whether they’re behaving correctly.

Check that we produce the expected query strings and that invalid inputs are rejected correctly

testQueriesDirectFromClaim()[source]

Test construction of the right Query from a page.Claim.

testQueriesWDStructures()[source]

Test queries using Wikibase page structures like ItemPage.

testQueryApiSyntax()[source]

Test that we can generate the API query correctly.

testQuerySets()[source]

Test that we can join queries together correctly.

class tests.wikidataquery_tests.TestApiSlowFunctions(*args, **kwargs)[source]

Test slow WikiDataQuery API functions.

testQueryApiGetter()[source]

Test that we can actually retreive data and that caching works.