blob: 772979b531b759d70cebd534126635ef83410898 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
require 'rubygems'
require 'opentox-ruby'
require 'test/unit'
require "./validate-owl.rb"
class AlgorithmTest < Test::Unit::TestCase
def setup
@@subjectid = OpenTox::Authorization.authenticate(TEST_USER,TEST_PW)
@algorithms = [
File.join(CONFIG[:services]["opentox-algorithm"],"fminer","bbrc"),
File.join(CONFIG[:services]["opentox-algorithm"],"fminer","last"),
File.join(CONFIG[:services]["opentox-algorithm"],"lazar")
#"http://apps.ideaconsult.net:8080/ambit2/algorithm/J48",
]
end
def teardown
end
def test_metadata
@algorithms.each do |algorithm|
validate_owl(algorithm, @@subjectid) unless CONFIG[:services]["opentox-algorithm"].match(/localhost/)
end
end
end
|