Added more tests

This commit is contained in:
Mads Marquart
2018-08-29 14:07:44 +02:00
parent 0617d7b49f
commit c2225bf2fd
4 changed files with 37 additions and 8 deletions

View File

@@ -9,13 +9,13 @@ from fbchat.models import ThreadType, Message, Mention, EmojiSize, Sticker
from utils import subset, STICKER_LIST, EMOJI_LIST
def test_fetch_all_users(client):
users = client.fetchAllUsers()
def test_fetch_all_users(client1):
users = client1.fetchAllUsers()
assert len(users) > 0
def test_fetch_thread_list(client):
threads = client.fetchThreadList(limit=2)
def test_fetch_thread_list(client1):
threads = client1.fetchThreadList(limit=2)
assert len(threads) == 2