Fix faulty activitystream test

Test assumed that the only entry in activitystream would be related to
the creation of the organization, which in this case was not true, the
most recent being something related to the user object being created or
modified.
This commit is contained in:
Akita Noek 2016-04-12 15:03:24 -04:00
parent 7cd4fb7b7a
commit 8c917de24d

View File

@ -20,7 +20,7 @@ def test_get_activity_stream_list(monkeypatch, organization, get, user):
@pytest.mark.django_db
def test_basic_fields(monkeypatch, organization, get, user):
u = user('admin', True)
activity_stream = ActivityStream.objects.latest('pk')
activity_stream = ActivityStream.objects.filter(organization=organization).latest('pk')
activity_stream.actor = u
activity_stream.save()