Skip to content

Commit 6441ddf

Browse files
committed
fixup! load_custom_processes: allow specifying path directly
1 parent a88edbd commit 6441ddf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/deploy/test_deploy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ def test_load_custom_processes_exec_broken(tmp_path, monkeypatch, content):
6060

6161
monkeypatch.setenv("OPENEO_CUSTOM_PROCESSES", str(path))
6262
logger, stream = _get_logger(level=logging.ERROR)
63-
load_custom_processes(logger)
63+
load_custom_processes(logger=logger)
6464
logs = stream.getvalue()
6565
assert f"load_custom_processes: failed to exec load {str(path)!r}" in logs
6666

6767

6868
def test_load_custom_processes_import_default():
6969
logger, stream = _get_logger()
70-
load_custom_processes(logger)
70+
load_custom_processes(logger=logger)
7171
logs = stream.getvalue()
7272
assert "Trying to load 'custom_processes'" in logs
7373

@@ -77,7 +77,7 @@ def test_load_custom_processes_import_absent(tmp_path):
7777
sys_path = [str(tmp_path)]
7878
name = random_name(prefix="custom_processes")
7979
with mock.patch("sys.path", new=sys_path):
80-
load_custom_processes(logger, _name=name)
80+
load_custom_processes(logger=logger, _name=name)
8181

8282
logs = stream.getvalue()
8383
assert "Trying to load {n!r} with PYTHONPATH {p}".format(n=name, p=sys_path) in logs
@@ -98,7 +98,7 @@ def {process_name}(args, env):
9898
"""
9999
path.write_text(textwrap.dedent(content))
100100
with mock.patch("sys.path", new=[str(tmp_path)] + sys.path):
101-
load_custom_processes(logger, _name=module_name)
101+
load_custom_processes(logger=logger, _name=module_name)
102102

103103
logs = stream.getvalue()
104104
assert "Trying to load {n!r} with PYTHONPATH ['{p!s}".format(n=module_name, p=str(tmp_path)) in logs

0 commit comments

Comments
 (0)