make pylint happy
Add mock dbus module
This commit is contained in:
parent
e826ebff53
commit
7d7f1724ff
@ -9,7 +9,7 @@ install:
|
||||
- pip install --quiet -r ci/requirements.txt
|
||||
- git clone https://github.com/"${TRAVIS_REPO_SLUG%%/*}"/qubes-builder ~/qubes-builder
|
||||
script:
|
||||
- test -z "$TESTS_ONLY" || pylint --rcfile=ci/pylintrc qubesmgmt
|
||||
- test -z "$TESTS_ONLY" || PYTHONPATH=test-packages pylint --rcfile=ci/pylintrc qubesmgmt
|
||||
- test -z "$TESTS_ONLY" || ./run-tests
|
||||
- test -n "$TESTS_ONLY" || ~/qubes-builder/scripts/travis-build
|
||||
env:
|
||||
|
@ -19,6 +19,7 @@ output-format=colorized
|
||||
reports=yes
|
||||
|
||||
[TYPECHECK]
|
||||
ignored-classes=dbus,SystemBus,SessionBus
|
||||
|
||||
[BASIC]
|
||||
|
||||
|
@ -129,6 +129,7 @@ class QubesVM(qubesmgmt.base.PropertyHolder):
|
||||
vm=self.name, vm_name=volname)
|
||||
return self._volumes
|
||||
|
||||
# pylint: disable=abstract-method
|
||||
class AdminVM(QubesVM):
|
||||
'''Dom0'''
|
||||
pass
|
||||
|
8
test-packages/dbus.py
Normal file
8
test-packages/dbus.py
Normal file
@ -0,0 +1,8 @@
|
||||
class DBusException(Exception):
|
||||
pass
|
||||
|
||||
class SystemBus(object):
|
||||
pass
|
||||
|
||||
class SessionBus(object):
|
||||
pass
|
Loading…
Reference in New Issue
Block a user