File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def test_federated_ontologies_all
2323
2424 refute_equal ontologies . length , ontologies_federate_all . length
2525
26- ontologies_federate_all . group_by { |x | x . id . split ( '/' ) [ 0 ..-2 ] . join ( '/' ) } . each do |portal , onts |
26+ ontologies_federate_all . reject { | x | x . errors } . group_by { |x | x . id . split ( '/' ) [ 0 ..-2 ] . join ( '/' ) } . each do |portal , onts |
2727 puts "#{ portal } ontologies: #{ onts . length } "
2828 end
2929
@@ -45,10 +45,6 @@ def test_federated_ontologies_all
4545 puts "Federated ontologies with two portal only with cache: #{ ontologies_federate_two . length } in #{ time2 } s"
4646
4747 refute_equal ontologies_federate_two . size , ontologies_federate_all . size
48-
49- federated_portals = ontologies_federate_two . map { |x | x . id . split ( '/' ) [ 0 ..-2 ] . join ( '/' ) } . uniq
50- assert_equal 3 , federated_portals . size
51- assert %w[ bioontology ecoportal biodivportal ] . all? { |p | federated_portals . any? { |id | id [ p ] } }
5248 end
5349
5450 def test_federated_submissions_all
@@ -68,7 +64,7 @@ def test_federated_submissions_all
6864
6965 refute_equal onts . length , onts_federate . length
7066
71- onts_federate . group_by { |x | x . id . split ( '/' ) [ 0 ..-4 ] . join ( '/' ) } . each do |portal , onts |
67+ onts_federate . reject { | x | x . errors } . group_by { |x | x . id . split ( '/' ) [ 0 ..-4 ] . join ( '/' ) } . each do |portal , onts |
7268 puts "#{ portal } submissions: #{ onts . length } "
7369 end
7470
You can’t perform that action at this time.
0 commit comments