bengibaykal / swe574group1

2 stars 2 forks source link

Activity Stream Tests - Test Fails on "test_action_stream_post_creation" #146

Closed eermis1 closed 4 years ago

eermis1 commented 4 years ago

Activity Stream tests fail on test_action_stream_post_creation

eermis1 commented 4 years ago

The fail is originated from incorrect Action.send structure on Post Model

The initial code is like below; For 2nd Action.send should contain Has Created A New Post on verb and New Post on description

action.send(instance.created_by, verb="Has Created A New Post - ", description="New Post",
            action_object=instance, target=instance.community)

action.send(instance.created_by, verb="Has Created A New Post Template - ", description="New Post Template",
            action_object=instance, target=instance.post_template)

correct code should be like;

action.send(instance.created_by, verb="Has Created A New Post - ", description="New Post",
            action_object=instance, target=instance.community)

action.send(instance.created_by, verb="Has Created A New Post - ", description="New Post",
            action_object=instance, target=instance.post_template)