apache_beam.runners.interactive.testing.integration.screen_diff module¶
Module to conduct screen diff based notebook integration tests.
-
class
apache_beam.runners.interactive.testing.integration.screen_diff.
ScreenDiffIntegrationTestEnvironment
(test_notebook_path, golden_dir, cleanup=True)[source]¶ Bases:
object
A test environment to conduct screen diff integration tests for notebooks.
-
base_url
¶ The base url where the locally started server serving HTMLs generated by notebook executions.
-
test_urls
¶ Mapping from test_id/execution_id to urls serving the output HTML pages generated by the corresponding notebook executions.
-
notebook_path_to_test_id
¶ Mapping from input notebook paths to their obfuscated execution/test ids.
-
-
apache_beam.runners.interactive.testing.integration.screen_diff.
should_skip
()[source]¶ Whether a screen diff test should be skipped.
-
class
apache_beam.runners.interactive.testing.integration.screen_diff.
BaseTestCase
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
A skipped base test case if interactive_test dependency is not installed.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
pytestmark
= [Mark(name='skip', args=(), kwargs={'reason': '[interactive] and [interactive_test] deps are both required.'})]¶
-