1
0
mirror of synced 2026-01-19 00:05:14 -05:00

read module env variables in main (#735)

This commit is contained in:
Charles
2020-10-29 10:13:46 -07:00
committed by GitHub
parent f408bce2dc
commit 2f238d6d35
2 changed files with 11 additions and 12 deletions

View File

@@ -93,14 +93,12 @@ def launch(source, args):
StandardSourceTestRunner(source).start(args)
impl_module = os.environ.get("AIRBYTE_TEST_MODULE")
impl_class = os.environ.get("AIRBYTE_TEST_PATH")
module = importlib.import_module(impl_module)
impl = getattr(module, impl_class)
def main():
impl_module = os.environ.get("AIRBYTE_TEST_MODULE")
impl_class = os.environ.get("AIRBYTE_TEST_PATH")
module = importlib.import_module(impl_module)
impl = getattr(module, impl_class)
# set up and run test runner
test = impl()