@pytest.fixture
def forumsread(user, forum, last_read):
 forumsread = ForumsRead()
 forumsread.user_id = user.id
 forumsread.forum_id = forum.id
 forumsread.last_read = last_read
 forumsread.save()
 return forumsread

@ pytest . fixture def forumsread ( user , forum , last_read ) : forumsread = ForumsRead ( ) forumsread . user_id = user . id forumsread . forum_id = forum . id forumsread . last_read = last_read forumsread . save ( ) return forumsread
create a forumsread object for the user and a forum .