Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (16 sloc) 534 Bytes
require 'helper'
device_id=Time.now.utc.strftime("%Y%m%d%H%M%S")
class TestIQEngiensApi < Test::Unit::TestCase
should "be able to send query" do
require 'iqengines'
api = IQEngines.Api()
qid, response = api.send_query('./test/a.jpeg', device_id=device_id)
puts response
end
should "be able to wait for results" do
api = IQEngines.Api()
response = api.wait_results(device_id=device_id)
puts response
response = api.get_result("c9c51eac57f6dea7474ba2cdb7cbbe4e4adbd894")
end
end
Jump to Line
Something went wrong with that request. Please try again.