Browse Source

Return a loader, to be sure to interrupt the finder algorithm

pull/302/head
Glandos 8 years ago
parent
commit
f8f67db0d9
  1. 7
      tests/test_compress_assets_plugin.py

7
tests/test_compress_assets_plugin.py

@ -11,6 +11,11 @@ from sigal.plugins import compress_assets
CURRENT_DIR = os.path.dirname(__file__)
class ErrorLoader:
def load_module(self, fullname):
raise ImportError
class ModuleMasker:
def __init__(self):
@ -32,7 +37,7 @@ class ModuleMasker:
def find_module(self, fullname, path=None):
if fullname in self._modules:
raise ImportError
return ErrorLoader()
@pytest.fixture(scope='function')

Loading…
Cancel
Save