added test skeleton

This commit is contained in:
Füleki Fábián 2020-05-08 23:00:23 +02:00
parent b7fe49037f
commit 1158e6cc60

12
test_everything.py Normal file
View File

@ -0,0 +1,12 @@
from redis_super_storage import RedisSuperStorage
from communicators import ConsumerCommunicator, ProducerCommunicator
from ip_watchdog import IPWatchdog
import pytest
import redis
def test_something(mocker):
mocker.patch("redis.from_url")
rst = RedisSuperStorage("test", 2)
redis.from_url.assert_called_once_with("test")