write tests for streamer

This commit is contained in:
bkfox
2023-06-12 14:09:06 +02:00
parent b586bc5309
commit 3d76b656d2
11 changed files with 254 additions and 41 deletions

View File

@ -0,0 +1,15 @@
"""Spoof psutil module in order to run and check tests."""
class FakeNetConnection:
def __init__(self, laddr, pid=None):
self.laddr = laddr
self.pid = pid
def net_connections(*args, **kwargs):
return net_connections.result
net_connections.result = []
"""Result value of net_connections call."""