tests.interwiki_graph_tests module#

Test Interwiki Graph functionality.

class tests.interwiki_graph_tests.TestWiktionaryGraph(*args, **kwargs)[source]#

Bases: DisconnectedSiteMixin, SiteAttributeTestCase

Tests for interwiki links to local sites.

abstract_class = False#
dry = True#
setUp()[source]#

Setup interwiki_graph data.

classmethod setUpClass()[source]#

Setup test class.

site = True#
sites = {'enwikt': {'code': 'en', 'family': 'wiktionary'}, 'frwikt': {'code': 'fr', 'family': 'wiktionary'}, 'plwikt': {'code': 'pl', 'family': 'wiktionary'}}#
test_octagon()[source]#

Test octagon nodes.

test_simple_graph()[source]#

Test that GraphDrawer.createGraph does not raise exception.