Skip to content

Commit 21df149

Browse files
committed
Add autotailor unit test stub.
1 parent 64354c5 commit 21df149

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/utils/test_autotailor.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import importlib
2+
3+
4+
def import_arbitrary_file_as_module(path, module_name):
5+
spec = importlib.util.spec_from_loader(
6+
module_name, importlib.machinery.SourceFileLoader(module_name, path))
7+
module = importlib.util.module_from_spec(spec)
8+
spec.loader.exec_module(module)
9+
return module
10+
11+
12+
autotailor = import_arbitrary_file_as_module("utils/autotailor", "autotailor")

0 commit comments

Comments
 (0)