fix and refactor keyboard unittest

This commit is contained in:
xs5871
2022-07-03 15:31:39 +00:00
committed by Kyle Brown
parent 64d9147615
commit 258e622bb4
2 changed files with 58 additions and 39 deletions

View File

@@ -60,6 +60,9 @@ def maybe_make_consumer_key(candidate, code, names):
class KeyAttrDict:
__cache = {}
def __iter__(self):
return self.__cache.__iter__()
def __setitem__(self, key, value):
if DEBUG_OUTPUT:
print(f'__setitem__ {key}, {value}')