We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9590f82 commit 090dfbfCopy full SHA for 090dfbf
test/integration/test_discovery_v2.rb
@@ -249,14 +249,16 @@ def test_delete_user_data
249
250
def test_analyze_document
251
skip "CPD only. Do not run on premium"
252
- analyze_data = File.open(Dir.getwd + "/resources/test_enrichments.csv")
+ analyze_data = File.open(Dir.getwd + "/resources/problem.json")
253
254
service_response = service.analyze_document(
255
project_id: @project_id,
256
collection_id: @collection_id,
257
- file: analyze_data
+ file: analyze_data,
258
+ file_content_type: "application/json"
259
)
- assert(service_response.nil?)
260
+ assert((200..299).cover?(service_response.status))
261
+ refute(service_response.nil?)
262
end
263
264
else
0 commit comments