From 7368450f12b91579a175fd7b4da418ad4162fcaf Mon Sep 17 00:00:00 2001 From: Damian Moore Date: Sun, 8 Aug 2021 23:09:37 +0100 Subject: [PATCH] Test case for invalid UTF-8 metadata --- tests/photos/invalid_utf8.jpg | Bin 0 -> 827 bytes tests/test_metadata.py | 8 +++++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 tests/photos/invalid_utf8.jpg diff --git a/tests/photos/invalid_utf8.jpg b/tests/photos/invalid_utf8.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d7c56e8bea794eca29a7b9e6a8c9281e2dc87e29 GIT binary patch literal 827 zcmex=oXL`H}>BNH>j0+<>@1A_&O5Ys_6fq;>Lfq}k(ArL7T7+8T3!~fe1 z&J6!41wca>DK+E&0R}-1U?6fZGYT>=2{JMZGX6ipAP)=yRz@&@cml|0VrF4wW9Q)H z;sz?%D!{d!pzFb0t`ULT2L^s2(k((8alEG2PU#B6^a-&PF%>L?6mQqXwbzE zD#l4gO`Kd};u4Zls%q*Qnp!5NX66=_R?aT2ZtfnQUcn)uVc`*xQOPN(Y3Ui6S;Zx# zW#tu>Rn0A}ZS5VMU6UqHnL2IyjG40*Enc#8+42=DS8dw7W$U)>J9h3mboj{8W5-XN zJay^vm8;jT-?(|};iJb-o<4j2;^nK4pFV&2`tAFVpT9u<0>%x*TR;-xGcxYE#}NLy#lXYN2#h>tK?Zw 30 + assert metadata.get('Artist') == '' + def test_location(): # Conversion from GPS exif data to latitude/longitude