@pytest.fixture
def topicsread(user, topic, last_read):
 topicsread = TopicsRead()
 topicsread.user_id = user.id
 topicsread.topic_id = topic.id
 topicsread.forum_id = topic.forum_id
 topicsread.last_read = last_read
 topicsread.save()
 return topicsread

@ pytest . fixture def topicsread ( user , topic , last_read ) : topicsread = TopicsRead ( ) topicsread . user_id = user . id topicsread . topic_id = topic . id topicsread . forum_id = topic . forum_id topicsread . last_read = last_read topicsread . save ( ) return topicsread
create a topicsread object for the user and a topic .