mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 22:05:07 -02:30
avoid activity stream entries of singleton implicit role associations
This commit is contained in:
13
awx/main/tests/functional/models/test_activity_stream.py
Normal file
13
awx/main/tests/functional/models/test_activity_stream.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import pytest
|
||||
|
||||
# AWX models
|
||||
from awx.main.models.organization import Organization
|
||||
from awx.main.models import ActivityStream
|
||||
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_activity_stream_create_entries():
|
||||
Organization.objects.create(name='test-organization2')
|
||||
assert ActivityStream.objects.filter(organization__isnull=False).count() == 1
|
||||
|
||||
Reference in New Issue
Block a user