Skip to content

Commit

Permalink
handle multiCV in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylenz committed Aug 29, 2024
1 parent f46e7ea commit b0064ed
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 b0064ed

Please sign in to comment.