diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/aa.rb | 4 | ||||
-rw-r--r-- | test/descriptor.rb | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -2,6 +2,10 @@ require_relative "setup.rb" class AATest < MiniTest::Test + def self.test_order + :alpha + end + def test_0_login res = RestClientWrapper.post(File.join($host,"aa/authenticate"),{:username=>"guest", :password => "guest"},{:Accept => "text/plain"}) assert_equal res.code, 200 diff --git a/test/descriptor.rb b/test/descriptor.rb index eae3ebf..db4b6c7 100644 --- a/test/descriptor.rb +++ b/test/descriptor.rb @@ -27,13 +27,13 @@ class DescriptorTest < MiniTest::Test result = RestClientWrapper.get File.join($host, "compound/descriptor", bsonid), {}, {:accept => "application/json"} json = JSON.parse(result) assert_equal json["name"], "Openbabel.HBA1" - assert_equal json["numeric"], true + assert_equal json["calculated"], true end def test_04_post_descriptor result = RestClientWrapper.post File.join($host, "compound/descriptor"), {:identifier => "CC(=O)CC(C)C#N", :descriptor => "Joelib.LogP"}, {:accept => "application/csv"} assert_equal result.code, 200 - assert_equal "SMILES,CC(=O)CC(C)C#N\n\"Joelib.LogP\",2.65908", result + assert_equal "SMILES,\"CC(=O)CC(C)C#N\"\n\"Joelib.LogP\",2.65908", result end # currently not applicable |