def test_bootstrap4(source_listdics): table = Table( source=source_listdics, plugins=[ Bootstrap4Plugin(), ] ) assert len(table.get_assets_css()) == 2 js = table.get_assets_js() assert len(js) == 2 assert 'bootstrap4.' in js[1]
def test_semantic(source_listdics): table = Table( source=source_listdics, plugins=[ SemanticPlugin(), ] ) assert len(table.get_assets_css()) == 2 js = table.get_assets_js() assert len(js) == 2 assert 'semanticui.' in js[1]
def test_foundation(source_listdics): table = Table( source=source_listdics, plugins=[ FoundationPlugin(), ] ) assert len(table.get_assets_css()) == 2 js = table.get_assets_js() assert len(js) == 2 assert 'foundation.' in js[1]
def test_jqueryui(source_listdics): table = Table( source=source_listdics, plugins=[ JqueryUiPlugin(), ] ) assert len(table.get_assets_css()) == 2 js = table.get_assets_js() assert len(js) == 2 assert 'jqueryui.' in js[1]
def test_i18n(source_listdics, settings): table = Table(source=source_listdics, plugins=[I18nPlugin()]) assert len(table.get_assets_css()) == 1 assert len(table.get_assets_js()) == 1 config = table.get_config() assert 'language' not in config # Unable to autodetect lang activate('ru') # Autodetect. config = table.get_config() assert 'Russian' in config['language']['url'] # Manual. config = Table(source=source_listdics, plugins=[I18nPlugin('de')]).get_config() assert 'German' in config['language']['url'] deactivate_all()