From b0064ed95cc1be5556c1e087e418826b577a026b Mon Sep 17 00:00:00 2001 From: Jeremy Lenz Date: Thu, 29 Aug 2024 11:46:39 -0400 Subject: [PATCH] handle multiCV in tests --- .../insights_cloud/api/machine_telemetries_controller_test.rb | 1 + test/unit/tags_generator_test.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb b/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb index 551b0708..ef282615 100644 --- a/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb +++ b/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb @@ -108,6 +108,7 @@ class MachineTelemetriesControllerTest < ActionController::TestCase context '#branch_info' do setup do User.current = User.find_by(login: 'secret_admin') + Setting[:allow_multiple_content_views] = true @env = FactoryBot.create(:katello_k_t_environment) @env2 = FactoryBot.create(:katello_k_t_environment, organization: @env.organization) diff --git a/test/unit/tags_generator_test.rb b/test/unit/tags_generator_test.rb index f315dc39..0e0fb995 100644 --- a/test/unit/tags_generator_test.rb +++ b/test/unit/tags_generator_test.rb @@ -6,6 +6,7 @@ class TagsGeneratorTest < ActiveSupport::TestCase setup do User.current = User.find_by(login: 'secret_admin') + Setting[:allow_multiple_content_views] = true env = FactoryBot.create(:katello_k_t_environment) env2 = FactoryBot.create(:katello_k_t_environment, organization: env.organization)