Bin
2025-12-16 9e0b2ba2c317b1a86212f24cbae3195ad1f3dbfa
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
test_name: Import files for hypertext
strict: false
marks:
- usefixtures:
  - django_live_url
 
stages:
- id: signup
  type: ref
 
- name: Setup labeling config
  request:
    data:
      label_config: <View><Hypertext name="hyper" value="&lt;embed src='$image'/&gt;"/></View>
      title: Hypertext Project
    method: POST
    url: '{django_live_url}/api/projects'
  response:
    save:
      json:
        project_pk: id
    status_code: 201
 
- name: Import file via UI uploads
  request:
    files:
      image: tests/test_suites/samples/first.jpg
    headers:
      content-type: multipart/form-data
    method: POST
    url: '{django_live_url}/api/projects/{project_pk}/import'
  response:
    status_code: 201
    save:
      json:
        file_upload_ids: file_upload_ids
 
- name: Task API and check that `$undefined$` is rename to `image`
  request:
    method: GET
    url: '{django_live_url}/api/tasks?project={project_pk}'
  response:
    json:
      tasks:
        - annotations_ids: ''
          annotations_results: ''
          annotators: []
          cancelled_annotations: 0
          comment_authors: []
          comment_count: 0
          created_at: !anystr
          data:
            image: !anystr
          drafts: []
          file_upload: null
          id: !anyint
          inner_id: !anyint
          is_labeled: false
          last_comment_updated_at: null
          meta: {}
          overlap: 1
          predictions_model_versions: ''
          predictions_results: ''
          project: !int '{project_pk}'
          storage_filename: null
          total_annotations: 0
          total_predictions: 0
          unresolved_comment_count: 0
          updated_at: !anystr
          updated_by: []
      total: 1
      total_annotations: 0
      total_predictions: 0
    status_code: 200