Clear cache rather than reassign, correct ALPHA case check and creation
This commit is contained in:
@@ -99,8 +99,7 @@ class TestKmkKeys(unittest.TestCase):
|
||||
|
||||
class TestKeys_dot(unittest.TestCase):
|
||||
def setUp(self):
|
||||
global KC
|
||||
KC = KeyAttrDict()
|
||||
KC.clear()
|
||||
|
||||
def test_expected_code_uppercase(self):
|
||||
assert 4 == KC.A.code
|
||||
@@ -150,8 +149,7 @@ class TestKeys_dot(unittest.TestCase):
|
||||
|
||||
class TestKeys_index(unittest.TestCase):
|
||||
def setUp(self):
|
||||
global KC
|
||||
KC = KeyAttrDict()
|
||||
KC.clear()
|
||||
|
||||
def test_expected_code_uppercase(self):
|
||||
assert 4 == KC['A'].code
|
||||
@@ -196,8 +194,7 @@ class TestKeys_index(unittest.TestCase):
|
||||
|
||||
class TestKeys_get(unittest.TestCase):
|
||||
def setUp(self):
|
||||
global KC
|
||||
KC = KeyAttrDict()
|
||||
KC.clear()
|
||||
|
||||
def test_expected_code_uppercase(self):
|
||||
assert 4 == KC.get('A').code
|
||||
@@ -248,8 +245,7 @@ class TestKeys_get(unittest.TestCase):
|
||||
# order of request doesn't matter
|
||||
class TestKeys_instances(unittest.TestCase):
|
||||
def setUp(self):
|
||||
global KC
|
||||
KC = KeyAttrDict()
|
||||
KC.clear()
|
||||
|
||||
def test_make_key_new_instance(self):
|
||||
key1 = make_key(code=1)
|
||||
|
Reference in New Issue
Block a user