示例#1
0
 def test_without_tables(self, test_plot, test_glplot, test_table, test_widget) -> None:
     assert beb._use_tables([test_plot]) is False
     assert beb._use_tables([test_plot, test_glplot]) is False
     assert beb._use_tables([test_plot, test_widget]) is False
     d = Document()
     d.add_root(test_plot)
     d.add_root(test_glplot)
     d.add_root(test_widget)
     assert beb._use_tables([d]) is False
示例#2
0
 def test_without_tables(self, test_plot, test_glplot, test_table, test_widget):
     assert beb._use_tables([test_plot]) is False
     assert beb._use_tables([test_plot, test_glplot]) is False
     assert beb._use_tables([test_plot, test_widget]) is False
     d = Document()
     d.add_root(test_plot)
     d.add_root(test_glplot)
     d.add_root(test_widget)
     assert beb._use_tables([d]) is False
示例#3
0
 def test_with_tables(self, test_plot, test_glplot, test_table, test_widget):
     assert beb._use_tables([test_table]) is True
     assert beb._use_tables([test_table, test_plot]) is True
     assert beb._use_tables([test_table, test_plot, test_glplot]) is True
     assert beb._use_tables([test_table, test_widget, test_table, test_glplot]) is True
     d = Document()
     d.add_root(test_plot)
     d.add_root(test_table)
     d.add_root(test_widget)
     d.add_root(test_glplot)
     assert beb._use_tables([d]) is True
 def test_with_tables(self, test_plot, test_glplot, test_table, test_widget):
     assert beb._use_tables([test_table]) is True
     assert beb._use_tables([test_table, test_plot]) is True
     assert beb._use_tables([test_table, test_plot, test_glplot]) is True
     assert beb._use_tables([test_table, test_widget, test_table, test_glplot]) is True
     d = Document()
     d.add_root(test_plot)
     d.add_root(test_table)
     d.add_root(test_widget)
     d.add_root(test_glplot)
     assert beb._use_tables([d]) is True