Skip to content

Commit

Permalink
Removed test
Browse files Browse the repository at this point in the history
  • Loading branch information
ddetommaso committed Oct 28, 2021
1 parent 362c72d commit 5c77bc2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion hidman/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__authors__ = 'Davide De Tommaso'
__emails__ = 'davide.detommaso@iit.it'
__license__ = 'MIT'
__version__ = '0.5'
__version__ = '0.6'
__description__ = 'A Python based HID (Human Interface Device) events manager'
__requirements__ = ['pytest>=6.2.4', 'evdev>=1.4.0', 'pyzmq>=22.1.0']
9 changes: 3 additions & 6 deletions hidman/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,14 @@ def __init__(self, device=None):
self._device = InputDevice(device)

def clear(self):
if self._device:
while not self._device.read_one() is None:
return
return
while not self._device.read_one() is None:
return

def read(self):
return self._device.read_one()

def close(self):
if self._device:
self._device.close()
self._device.close()

class HIDEvent:

Expand Down
7 changes: 1 addition & 6 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,4 @@
class TestLatency:

def test_run(self):
serv = HIDServer(device=None)
t = threading.Thread(target=serv.run)
t.start()
client = HIDClient()
client.waitEvent()
client.close()
pass

0 comments on commit 5c77bc2

Please sign in to comment.