mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 06:58:06 -03:30
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:
parent
7cd4fb7b7a
commit
8c917de24d
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user