diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-02-07 10:09:29 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-02-07 10:09:29 +0100 |
commit | 6e73d2f1c60382ed9f9a54b4fe6677cf767dc8db (patch) | |
tree | e21782699607172005cf1e5857487e65f5f715cc /test | |
parent | 9407e4f481bc2a7c5d1daa3c42a0123c5fb5fbbf (diff) |
activate copy of old cv dataset folds
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_examples.rb | 8 | ||||
-rw-r--r-- | test/unit_test.rb | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/test/test_examples.rb b/test/test_examples.rb index 29fe8cd..e7a07ca 100755 --- a/test/test_examples.rb +++ b/test/test_examples.rb @@ -310,9 +310,13 @@ module ValidationExamples class LR_AmbitCacoModel < ModelValidation def initialize - @model_uri = "http://apps.ideaconsult.net:8080/ambit2/model/33" - @test_dataset_uri = "http://apps.ideaconsult.net:8080/ambit2/dataset/R545" +# @model_uri = "http://apps.ideaconsult.net:8080/ambit2/model/33" +# @test_dataset_uri = "http://apps.ideaconsult.net:8080/ambit2/dataset/R545" #@prediction_feature=http://apps.ideaconsult.net:8080/ambit2/feature/22200 + + @model_uri = "https://ambit.uni-plovdiv.bg:8443/ambit2/model/33" + @test_dataset_uri = "https://ambit.uni-plovdiv.bg:8443/ambit2/dataset/R545" + end end diff --git a/test/unit_test.rb b/test/unit_test.rb index d76e156..8474dd2 100644 --- a/test/unit_test.rb +++ b/test/unit_test.rb @@ -112,11 +112,14 @@ class ValidationTest < Test::Unit::TestCase assert_equal report.uri,report3.uri @report = report end + + ################### utils and overrides ########################## def app Sinatra::Application end + # checks RestCallError type def assert_rest_call_error( ex ) if ex==OpenTox::NotAuthorizedError and @@subjectid==nil puts "AA disabled: skipping test for not authorized" @@ -133,12 +136,12 @@ class ValidationTest < Test::Unit::TestCase end end + # hack to have a global_setup and global_teardown def teardown if((@@expected_test_count-=1) == 0) global_teardown end end - def setup unless defined?@@expected_test_count @@expected_test_count = (self.class.instance_methods.reject{|method| method[0..3] != 'test'}).length |