Преглед изворни кода

test: fixed structure tests

Mikael Koli пре 3 година
родитељ
комит
a912d033e2
1 измењених фајлова са 2 додато и 6 уклоњено
  1. 2 6
      redmail/test/email/test_structure.py

+ 2 - 6
redmail/test/email/test_structure.py

@@ -18,9 +18,7 @@ def test_empty():
         subject="An example",
         subject="An example",
     )
     )
     structure = payloads_to_dict(msg)
     structure = payloads_to_dict(msg)
-    assert structure == {
-        "multipart/mixed": {}
-    }
+    assert structure == {}
 
 
 def test_text():
 def test_text():
 
 
@@ -33,9 +31,7 @@ def test_text():
     )
     )
     structure = payloads_to_dict(msg)
     structure = payloads_to_dict(msg)
     assert structure == {
     assert structure == {
-        "multipart/mixed": {
-            'text/plain': 'Text content\n'
-        }
+        'text/plain': 'Text content\n'
     }
     }
 
 
 def test_html():
 def test_html():