Make all models frozen, and sessions hashable

This commit is contained in:
Mads Marquart
2020-01-23 10:18:33 +01:00
parent 7019124d1f
commit 89f90ef849
5 changed files with 16 additions and 29 deletions

View File

@@ -1,13 +1,9 @@
import pytest
import fbchat
@pytest.fixture(scope="session")
def session():
class FakeSession:
# TODO: Add a further mocked session
user_id = "31415926536"
def __repr__(self):
return "<FakeSession>"
return FakeSession()
return fbchat.Session(
user_id="31415926536", fb_dtsg=None, revision=None, session=None
)