mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 18:35:37 -04:00
CMake: if pylint is available, run it as part of the test-suite
This introduces a stub-implementation (fake) that mimics the API offered by libcalamares (the library is actually exposed to Python via Boost::Python, so it doesn't act like a C-extension). Using that stub-implementation, we can check Python modules for validity as part of the test-suite. The stub-implementation is needed, because otherwise every Python module already fails at `import libcalamares`. - stub-implement the API that is actually used by the Python modules - in globalstorage, be slightly smart about what keys are being requested (so that e.g. all the modules that handle partitions information get an empty list and can manipulate that, instead of erroring out when they get a string)
This commit is contained in:
parent
836ea55dbd
commit
719548213f
4 changed files with 50 additions and 2 deletions
|
@ -10,6 +10,14 @@ def debug(_): pass
|
|||
|
||||
def warning(_): pass
|
||||
|
||||
def error(_): pass
|
||||
|
||||
def gettext_path(): pass
|
||||
|
||||
def gettext_languages(): pass
|
||||
|
||||
def target_env_call(_): return 0
|
||||
|
||||
def check_target_env_call(_): pass
|
||||
|
||||
def mount(device, mountpoint, fstype, options): return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue