diff options
author | Christoph Helma <helma@in-silico.ch> | 2016-04-13 18:18:36 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2016-04-13 18:18:36 +0200 |
commit | 64f1f32ced77afb278bdb7c27397c5299a73675c (patch) | |
tree | b44cdc6c9533be8e33815fb16e83a341c35ea3d1 /test/nanoparticles.rb | |
parent | 815cf6ba1543fc323eb7cbd1202fadbf03bcfbca (diff) |
improved enm import
Diffstat (limited to 'test/nanoparticles.rb')
-rw-r--r-- | test/nanoparticles.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/nanoparticles.rb b/test/nanoparticles.rb index 8a6836c..6f241ec 100644 --- a/test/nanoparticles.rb +++ b/test/nanoparticles.rb @@ -3,8 +3,12 @@ require_relative "setup.rb" class NanoparticleTest < MiniTest::Test def test_import - Import::Enanomapper.import + dataset_ids = Import::Enanomapper.import assert_operator Nanoparticle.count , :>, 570, "Only #{Nanoparticle.count} nanoparticles imported" + assert_operator dataset_ids.size, :>, 8, "Only #{dataset_ids.size} bundles imported" + p dataset_ids.collect{|d| Dataset.find(d).name} + assert dataset_ids.collect{|d| Dataset.find(d).name}.include? ("NanoWiki") + assert dataset_ids.collect{|d| Dataset.find(d).name}.include? ("Protein Corona Fingerprinting Predicts the Cellular Interaction of Gold and Silver Nanoparticles") end def test_create_model |