vision_batch_annotate_files_test.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. test:
  2. suites:
  3. - name: Vision V1 Sample Tests
  4. cases:
  5. - name: vision_batch_annotate_files
  6. spec:
  7. - call:
  8. sample: vision_batch_annotate_files
  9. params:
  10. file_path:
  11. literal: resources/kafka.pdf
  12. # Page 1
  13. - assert_contains_any:
  14. - literal: "Gregor Samsa woke"
  15. - literal: "he found himself transformed in his bed"
  16. - literal: "What’s happened to me?"
  17. - literal: "Gregor then turned to look out the window"
  18. - literal: "Drops of rain could be heard "
  19. # Page 2
  20. - assert_contains_any:
  21. - literal: "Getting up early"
  22. - literal: "He must have tried it a hundred times"
  23. - literal: "look at the floundering legs"
  24. - literal: "travelling salesmen live a life"
  25. - literal: "the best thing for me"
  26. # The pages not included in the API request should not
  27. # be included in the results (Page 3 texts)
  28. - assert_not_contains:
  29. - literal: "the boss is hard of hearing"
  30. - literal: "even if he did catch the train"
  31. - literal: "fifteen years of service"
  32. # Page 9 (The last page, -1)
  33. - assert_contains_any:
  34. - literal: "There was a loud thump"
  35. - literal: "Gregor tried to imagine"
  36. - literal: "please open up this door"
  37. - literal: "The lad only ever thinks about the business"
  38. - literal: "Good morning, Mr. Samsa"