tests package

Subpackages

Submodules

tests.conftest module

tests.conftest.fixture_pipeline_name(request)[source]

tests.shared_test_pipeline module

class tests.shared_test_pipeline.SharedTestPipeline(methodName='runTest')[source]

Bases: TestCase

new_pipeline_with_suffix(suffix: str) Pipeline[source]
property pipeline: Pipeline
setUp()[source]

Hook method for setting up the test fixture before exercising it.

classmethod setUpClass()[source]

Hook method for setting up class fixture before running tests in the class.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

tests.shared_test_pipeline.sql(text_or_iterable)[source]

Decorator to attach SQL (string or list/tuple of strings) to a test method.

Module contents

tests.enterprise_only(fn)[source]
tests.unique_pipeline_name(base_name: str) str[source]

In CI, multiple tests of different runs can run against the same Feldera instance, we make sure the pipeline names they use are unique by appending the first 5 characters of the commit SHA or ‘local’ if not in CI.