Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit 2631963

Browse files
BradenMantohaUa
authored andcommitted
test(wildcard): Updated Wildcard Tests to include V0 (#7)
* fix(wildcard): Wildcards allowing nonexistant VPin 33 Commit 4bd673b causes read/write wildcard tests to fail, as it allows a nonexistant virtual pin 33 t o be passed to a wildcard decorator. * fix: Reverted Code Change, Updated Tests Mistake on my part, not sure what I was thinking there.
1 parent 4bd673b commit 2631963

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_blynk_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def read_pin_handler():
9494
pass
9595

9696
assert 'read v10' in bl._events.keys()
97-
assert len(bl._events.keys()) == bl.VPIN_MAX_NUM
97+
assert len(bl._events.keys()) == bl.VPIN_MAX_NUM + 1
9898

9999
def test_write_wildcard_event(self, bl):
100100
bl._events = {}
@@ -104,7 +104,7 @@ def write_pin_handler():
104104
pass
105105

106106
assert 'write v5' in bl._events.keys()
107-
assert len(bl._events.keys()) == bl.VPIN_MAX_NUM
107+
assert len(bl._events.keys()) == bl.VPIN_MAX_NUM + 1
108108

109109
def test_call_handler(self, bl):
110110
bl._events = {}

0 commit comments

Comments
 (0)