Conditions | 2 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """ |
||
30 | def send_request(api_client, api_client_authz_header, party_id, creator_id): |
||
31 | url = f'/api/tourney/avatars' |
||
32 | |||
33 | headers = [api_client_authz_header] |
||
34 | with Path('testfixtures/images/image.png').open('rb') as image_file: |
||
35 | form_data = { |
||
36 | 'image': image_file, |
||
37 | 'party_id': party_id, |
||
38 | 'creator_id': creator_id, |
||
39 | } |
||
40 | |||
41 | return api_client.post(url, headers=headers, data=form_data) |
||
42 |