From 019c5bac045955f6b207e6d658aef4a6fb3870e4 Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Mon, 13 Jun 2016 09:39:52 -0400 Subject: [PATCH] fix tests to be more specific about AS query --- awx/main/tests/functional/api/test_activity_streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tests/functional/api/test_activity_streams.py b/awx/main/tests/functional/api/test_activity_streams.py index 39990064d7..f1c42cdd9d 100644 --- a/awx/main/tests/functional/api/test_activity_streams.py +++ b/awx/main/tests/functional/api/test_activity_streams.py @@ -13,7 +13,7 @@ def mock_feature_enabled(feature, bypass_database=None): @pytest.fixture def activity_stream_entry(organization, org_admin): - return ActivityStream.objects.filter(organization__pk=organization.pk, operation='associate').first() + return ActivityStream.objects.filter(organization__pk=organization.pk, user=org_admin, operation='associate').first() @pytest.mark.skipif(not getattr(settings, 'ACTIVITY_STREAM_ENABLED', True), reason="Activity stream not enabled") @mock.patch('awx.api.views.feature_enabled', new=mock_feature_enabled)