X-Git-Url: https://git.madduck.net/etc/neomutt.git/blobdiff_plain/cf2a62ab3b55a618a633ea7fa92360aca5e7447b..62d5dded67993412d4516fdc33f58a2c4e470cc8:/.config/neomutt/buildmimetree.py?ds=inline diff --git a/.config/neomutt/buildmimetree.py b/.config/neomutt/buildmimetree.py index 40bd856..a0112c8 100755 --- a/.config/neomutt/buildmimetree.py +++ b/.config/neomutt/buildmimetree.py @@ -920,18 +920,16 @@ try: assert tree.children[1].path == written[0] assert written[1] == request.urlopen(test_png).read() - def test_inline_image_collection(self, test_png, const1, const2, fake_filewriter): - test_images = { - test_png: InlineImageInfo( - cid=const1, desc=const2 - ) - } + def test_inline_image_collection( + self, test_png, const1, const2, fake_filewriter + ): + test_images = {test_png: InlineImageInfo(cid=const1, desc=const2)} relparts = collect_inline_images( test_images, filewriter_fn=fake_filewriter ) written = fake_filewriter.pop() - assert b'PNG' in written[1] + assert b"PNG" in written[1] assert relparts[0].subtype == "png" assert relparts[0].path == written[0]