diff --git a/tests/utils/test_autotailor.py b/tests/utils/test_autotailor.py new file mode 100644 index 00000000000..5cf31b542f2 --- /dev/null +++ b/tests/utils/test_autotailor.py @@ -0,0 +1,12 @@ +import importlib + + +def import_arbitrary_file_as_module(path, module_name): + spec = importlib.util.spec_from_loader( + module_name, importlib.machinery.SourceFileLoader(module_name, path)) + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + return module + + +autotailor = import_arbitrary_file_as_module("utils/autotailor", "autotailor")