Skip to content

Commit

Permalink
Add autotailor unit test stub.
Browse files Browse the repository at this point in the history
  • Loading branch information
matejak committed Sep 4, 2022
1 parent 64354c5 commit 21df149
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/utils/test_autotailor.py
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 21df149

Please sign in to comment.