Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunwei Wang committed Feb 7, 2024
1 parent 0241c69 commit b0b9888
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ class SinglePatientAPIGroup < Inferno::TestGroup
id = test_group.id

group_config = {}
if test_group.respond_to?(:metadata) && test_group.metadata.delayed? && !test_group.metadata.searchable_delayed_resource?
if test_group.respond_to?(:metadata) &&
test_group.metadata.delayed? &&
!test_group.metadata.searchable_delayed_resource?
test_group.children.reject! { |child| child.include? USCoreTestKit::SearchTest }
group_config[:options] = { read_all_resources: true }
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ class SinglePatientUSCore4APIGroup < Inferno::TestGroup
id = test_group.id

group_config = {}
if test_group.respond_to?(:metadata) && test_group.metadata.delayed? && !test_group.metadata.searchable_delayed_resource?
if test_group.respond_to?(:metadata) &&
test_group.metadata.delayed? &&
!test_group.metadata.searchable_delayed_resource?
test_group.children.reject! { |child| child.include? USCoreTestKit::SearchTest }
group_config[:options] = { read_all_resources: true }
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ def self.user_runnable?
id = test_group.id

group_config = {}
if test_group.respond_to?(:metadata) && test_group.metadata.delayed? && !test_group.metadata.searchable_delayed_resource?
if test_group.respond_to?(:metadata) &&
test_group.metadata.delayed? &&
!test_group.metadata.searchable_delayed_resource?
test_group.children.reject! { |child| child.include? USCoreTestKit::SearchTest }
group_config[:options] = { read_all_resources: true }
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ class SinglePatientUSCore6APIGroup < Inferno::TestGroup
id = test_group.id

group_config = {}
if test_group.respond_to?(:metadata) && test_group.metadata.delayed? && !test_group.metadata.searchable_delayed_resource?
if test_group.respond_to?(:metadata) &&
test_group.metadata.delayed? &&
!test_group.metadata.searchable_delayed_resource?
test_group.children.reject! { |child| child.include? USCoreTestKit::SearchTest }
group_config[:options] = { read_all_resources: true }
end
Expand Down

0 comments on commit b0b9888

Please sign in to comment.