Skip to content

Commit

Permalink
Remove not needed mediafiles from the example data. (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl committed Feb 14, 2022
1 parent 39a5071 commit 8787911
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 90 deletions.
95 changes: 7 additions & 88 deletions global/data/example-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -729,9 +729,7 @@
13,
14,
15,
16,
17,
18
16
],
"speaker_ids": [
1,
Expand Down Expand Up @@ -766,9 +764,7 @@
5
],
"mediafile_ids": [
1,
2,
3
1
],
"motion_ids": [
1,
Expand Down Expand Up @@ -873,10 +869,7 @@
2
],
"chat_message_ids": [],
"logo_$_id": [
"web_header"
],
"logo_$web_header_id": 3,
"logo_$_id": [],
"font_$_id": [],
"committee_id": 1,
"default_meeting_for_committee_id": 1,
Expand Down Expand Up @@ -979,8 +972,7 @@
1
],
"mediafile_inherited_access_group_ids": [
1,
3
1
],
"read_comment_section_ids": [],
"write_comment_section_ids": [],
Expand Down Expand Up @@ -1025,8 +1017,7 @@
1
],
"mediafile_inherited_access_group_ids": [
1,
3
1
],
"read_comment_section_ids": [
1
Expand Down Expand Up @@ -1595,24 +1586,6 @@
"speaker_ids": [],
"projection_ids": [],
"meeting_id": 1
},
"17": {
"id": 17,
"closed": false,
"sequential_number": 17,
"content_object_id": "mediafile/2",
"speaker_ids": [],
"projection_ids": [],
"meeting_id": 1
},
"18": {
"id": 18,
"closed": false,
"sequential_number": 18,
"content_object_id": "mediafile/3",
"speaker_ids": [],
"projection_ids": [],
"meeting_id": 1
}
},
"speaker": {
Expand Down Expand Up @@ -2086,9 +2059,7 @@
"agenda_item_id": 13,
"list_of_speakers_id": 13,
"tag_ids": [],
"attachment_ids": [
2
],
"attachment_ids": [],
"projection_ids": [
2
],
Expand Down Expand Up @@ -3209,65 +3180,13 @@
3
],
"parent_id": null,
"child_ids": [
3
],
"child_ids": [],
"list_of_speakers_id": 16,
"projection_ids": [],
"attachment_ids": [],
"used_as_logo_$_in_meeting_id": [],
"used_as_font_$_in_meeting_id": [],
"meeting_id": 1
},
"2": {
"id": 2,
"title": "A.txt",
"is_directory": false,
"filesize": 3,
"filename": "A.txt",
"mimetype": "text/plain",
"pdf_information": {},
"create_timestamp": 1584513771,
"is_public": true,
"access_group_ids": [],
"inherited_access_group_ids": [],
"parent_id": null,
"child_ids": [],
"list_of_speakers_id": 17,
"projection_ids": [],
"attachment_ids": [
"motion/4"
],
"used_as_logo_$_in_meeting_id": [],
"used_as_font_$_in_meeting_id": [],
"meeting_id": 1
},
"3": {
"id": 3,
"title": "in.jpg",
"is_directory": false,
"filesize": 1462,
"filename": "in.jpg",
"mimetype": "image/png",
"pdf_information": {},
"create_timestamp": 1584513791,
"is_public": false,
"access_group_ids": [],
"inherited_access_group_ids": [
2,
3
],
"parent_id": 1,
"child_ids": [],
"list_of_speakers_id": 18,
"projection_ids": [],
"attachment_ids": [],
"used_as_logo_$_in_meeting_id": [
"web_header"
],
"used_as_logo_$web_header_in_meeting_id": 1,
"used_as_font_$_in_meeting_id": [],
"meeting_id": 1
}
},
"projector": {
Expand Down
4 changes: 2 additions & 2 deletions tests/system/action/meeting/test_delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_delete_full_meeting(self) -> None:
self.assert_model_deleted(f"tag/{i+1}")
for i in range(15):
self.assert_model_deleted(f"agenda_item/{i+1}")
for i in range(18):
for i in range(16):
self.assert_model_deleted(f"list_of_speakers/{i+1}")
for i in range(13):
self.assert_model_deleted(f"speaker/{i+1}")
Expand Down Expand Up @@ -129,7 +129,7 @@ def test_delete_full_meeting(self) -> None:
self.assert_model_deleted(f"assignment/{i+1}")
for i in range(5):
self.assert_model_deleted(f"assignment_candidate/{i+1}")
for i in range(3):
for i in range(1):
self.assert_model_deleted(f"mediafile/{i+1}")
for i in range(2):
self.assert_model_deleted(f"projector/{i+1}")
Expand Down

0 comments on commit 8787911

Please sign in to comment.