Disable failing unit test that's difficult to write

This commit is contained in:
Ramon Wenger 2022-10-06 18:25:14 +02:00
parent f7153fc5cb
commit ad21cb4588
1 changed files with 105 additions and 104 deletions

View File

@ -79,107 +79,108 @@ class DuplicateContentBlockTestCase(SkillboxTestCase):
self.assertTrue('Kopie' in content_blocks[0].get('title')) self.assertTrue('Kopie' in content_blocks[0].get('title'))
self.assertTrue('Kopie' not in content_blocks[1].get('title')) self.assertTrue('Kopie' not in content_blocks[1].get('title'))
def test_duplicate_non_editable_contents(self): # def test_duplicate_non_editable_contents(self):
# contents__0__text_block__text # # todo: find out how to create contents for tests, then re-enable
nested_form_data({ # # contents__0__text_block__text
'content': streamfield([ # nested_form_data({
nested_form_data({ # 'content': streamfield([
'text_block': [ # nested_form_data({
('text', rich_text('Asdf')) # 'text_block': [
] # ('text', rich_text('Asdf'))
}) # ]
]) # })
}) # ])
# })
contents = [ #
nested_form_data({ # contents = [
'text_block': streamfield([ # nested_form_data({
('text', 'Asdf') # 'text_block': streamfield([
]) # ('text', 'Asdf')
}), # ])
# { # }),
# "type": "text_block", # # {
# "value": { # # "type": "text_block",
# "text": "Asdf" # # "value": {
# }, # # "text": "Asdf"
# }, # # },
# { # # },
# "type": "assignment", # # {
# "value": { # # "type": "assignment",
# "title": "Ein Auftragstitel", # # "value": {
# "assignment": "Ein Auftrag", # # "title": "Ein Auftragstitel",
# }, # # "assignment": "Ein Auftrag",
# }, # # },
# { # # },
# "type": "image_block", # # {
# "value": { # # "type": "image_block",
# "path": "/media/original_images/dummy_pZUH02q.jpg" # # "value": {
# }, # # "path": "/media/original_images/dummy_pZUH02q.jpg"
# }, # # },
# { # # },
# "type": "image_url_block", # # {
# "value": { # # "type": "image_url_block",
# "title": "Asdf", # # "value": {
# "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg" # # "title": "Asdf",
# }, # # "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg"
# }, # # },
# { # # },
# "type": "link_block", # # {
# "value": { # # "type": "link_block",
# "text": "Asdf", # # "value": {
# "url": "https://iterativ.ch" # # "text": "Asdf",
# }, # # "url": "https://iterativ.ch"
# }, # # },
# { # # },
# "type": "solution", # # {
# "value": { # # "type": "solution",
# "text": "Asdf", # # "value": {
# }, # # "text": "Asdf",
# }, # # },
# { # # },
# "type": "video_block", # # {
# "value": { # # "type": "video_block",
# "url": "https://www.youtube.com/watch?v=QxQBWR7sntI" # # "value": {
# }, # # "url": "https://www.youtube.com/watch?v=QxQBWR7sntI"
# }, # # },
# { # # },
# "type": "document_block", # # {
# "value": { # # "type": "document_block",
# "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg" # # "value": {
# }, # # "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg"
# }, # # },
# { # # },
# "type": "infogram_block", # # {
# "value": { # # "type": "infogram_block",
# "id": "4405271e-dbfb-407e-ac19-0a238cde393f", # # "value": {
# "title": "Gerät Internetnutzung Jungen" # # "id": "4405271e-dbfb-407e-ac19-0a238cde393f",
# }, # # "title": "Gerät Internetnutzung Jungen"
# }, # # },
# { # # },
# "type": "thinglink_block", # # {
# "value": { # # "type": "thinglink_block",
# "id": "1314204266449076227" # # "value": {
# }, # # "id": "1314204266449076227"
# }, # # },
# { # # },
# "type": "subtitle", # # {
# "value": { # # "type": "subtitle",
# "text": "Subtitle" # # "value": {
# }, # # "text": "Subtitle"
# }, # # },
# { # # },
# "type": "instruction", # # {
# "value": { # # "type": "instruction",
# "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg", # # "value": {
# "text": "Instruction", # # "url": "http://localhost:8000/media/images/dummy_pZUH02q.max-165x165.jpg",
# }, # # "text": "Instruction",
# }, # # },
# { # # },
# "type": "module_room_slug", # # {
# "value": { # # "type": "module_room_slug",
# "title": "Raum", # # "value": {
# }, # # "title": "Raum",
# }, # # },
] # # },
self.content_block.contents = contents # ]
self.assertTrue(False) # self.content_block.contents = contents
# self.assertTrue(False)