Fix Client.mark_as_(un)read, and add tests

This commit is contained in:
Mads Marquart
2020-05-07 11:59:05 +02:00
parent 18a3ffb90d
commit 2a382ffaed
3 changed files with 29 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
import pytest
import fbchat
import datetime
import os
pytestmark = pytest.mark.online
@@ -93,5 +94,9 @@ def test_upload_many(client, open_resource):
)
# def test_mark_as_read(client):
# client.mark_as_read([thread1, thread2])
def test_mark_as_read(client, user, group):
client.mark_as_read([user, group], datetime.datetime.now())
def test_mark_as_unread(client, user, group):
client.mark_as_unread([user, group], datetime.datetime.now())