various #16

Merged
dan merged 94 commits from various into dev 2023-12-14 14:04:01 +01:00
Showing only changes of commit d9b65c6a6f - Show all commits

View file

@ -1,7 +1,5 @@
import os
import shutil
import sys
from collections import UserList
from pathlib import Path
import pytest
@ -43,20 +41,3 @@ def test_runner_runner_dict_import(tmp_recipes: Path):
RUNNER_DICT = Coordinator.create_runner_dict(tmp_recipes)
assert len(RUNNER_DICT.keys()) > 0
# def test_runner_runner_dict_import_patched(tmp_recipes: Path, monkeypatch):
# """import from recipes dict should fail without sys.path.append"""
# class MockPath(UserList):
# def append(self, item):
# pass
# monkeypatch.setattr(sys, "path", MockPath())
# with pytest.raises(ModuleNotFoundError):
# Coordinator.create_runner_dict(tmp_recipes)
# def test_something():
# import authentik