summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2016-03-15 18:46:34 +0100
committerChristoph Helma <helma@in-silico.ch>2016-03-15 18:46:34 +0100
commitabc3526e318a2bfa24dfe033d8879e7657c2ae5c (patch)
treeb11500952085d6a771f845431258c7befae5fd04 /test
parent7c3bd90c26dfeea2db3cf74a1cefc23d8dece7c0 (diff)
single tests pass
Diffstat (limited to 'test')
-rw-r--r--test/regression.rb2
-rw-r--r--test/setup.rb4
2 files changed, 2 insertions, 4 deletions
diff --git a/test/regression.rb b/test/regression.rb
index 6936eb6..8dfb6d7 100644
--- a/test/regression.rb
+++ b/test/regression.rb
@@ -26,7 +26,6 @@ class LazarRegressionTest < MiniTest::Test
model = Model::LazarRegression.create(training_dataset, :prediction_algorithm => "OpenTox::Algorithm::Regression.local_fingerprint_regression")
compound = Compound.from_smiles "NC(=O)OCCC"
prediction = model.predict compound
- p prediction
refute_nil prediction[:value]
end
@@ -35,7 +34,6 @@ class LazarRegressionTest < MiniTest::Test
model = Model::LazarRegression.create(training_dataset, :prediction_algorithm => "OpenTox::Algorithm::Regression.local_physchem_regression")
compound = Compound.from_smiles "NC(=O)OCCC"
prediction = model.predict compound
- p prediction
refute_nil prediction[:value]
end
diff --git a/test/setup.rb b/test/setup.rb
index 3825282..dc577b3 100644
--- a/test/setup.rb
+++ b/test/setup.rb
@@ -4,5 +4,5 @@ require_relative '../lib/lazar.rb'
include OpenTox
TEST_DIR ||= File.expand_path(File.dirname(__FILE__))
DATA_DIR ||= File.join(TEST_DIR,"data")
-#$mongo.database.drop
-#$gridfs = $mongo.database.fs
+$mongo.database.drop
+$gridfs = $mongo.database.fs