Skip to content

Commit

Permalink
handle multiCV in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylenz authored and chris1984 committed Sep 6, 2024
1 parent f0d377c commit 89d3252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions test/unit/tags_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 89d3252

Please sign in to comment.