Skip to content

Commit

Permalink
test: add qubesdb mockup
Browse files Browse the repository at this point in the history
Allow pylint checking calls into qubesdb too.
  • Loading branch information
marmarek committed Jun 27, 2024
1 parent afba67e commit 1afef07
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test-packages/qubesdb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
class QubesDB:
def read(self, key):
return b'testvm'

def write(self, key, value):
pass

def rm(self, key):
pass

def list(self, path):
return ['test']

class Error(Exception):
pass

class DisconnectedError(Error):
pass

0 comments on commit 1afef07

Please sign in to comment.