read module env variables in main (#735)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user