From a2bf51362227d46a95230ec81090fb2196502268 Mon Sep 17 00:00:00 2001 From: Guts Date: Mon, 20 Jan 2020 08:43:16 +0100 Subject: [PATCH] Clean up --- docs/Isogeo2office_launcher.lnk | Bin 1559 -> 0 bytes docs/dev_build.md | 33 ------- tests/test_utils.py | 151 -------------------------------- 3 files changed, 184 deletions(-) delete mode 100644 docs/Isogeo2office_launcher.lnk delete mode 100644 docs/dev_build.md delete mode 100644 tests/test_utils.py diff --git a/docs/Isogeo2office_launcher.lnk b/docs/Isogeo2office_launcher.lnk deleted file mode 100644 index 9bd675aa33690bcf1974768a0d7e7954b4f43bb2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1559 zcmcgsT}YE*6nvA-iSs)k|IQP;YH8++*S_5yWWrIyyrdVyw7*u^M2Q-vB04wuc{l)yI z3pTjX11}@uaV)@?S2fn8hPlt{vpaKhfRYgB`9$#v=j~lW8qR4(AGv(6!--sQD-uvI zGmq>mj_%aJ>a=O?z4lO^^(EPZ0^w{~SdY_6E*rGu>?I^mz(gbw@_w1K2pNZo7-AFA zzvuI!nscogEMTBMmf)!@!9+5Eem7T+ zzg9W4wDNI~!A{?4YTe46xv0y@tXwIuxy!{oS5Ni-v;6l7v`U64kh^AM z4awL3mXPma8`nKGlZjsX6H&z4%LUSDizJkQ?VQV)g-5w9D{sih`boWjIASM(QV}zyKjn`gM%koz zgTDhY?hs?Ch~U41>J>tgoV(Om`Pig4jIYF8-9O-bagz2>4$=W;WU_-Zkw@exS}tWi z^ptuO^3f~4Z1(0s6hKFrOMgCf*;%MW=P{;`_5wnzIzH0LtD}jNB=b%8jdy-c z#|(R0Q;KP~Nr+TTS~R>tG)P;wC8Uxvq_u^3w8NTKeC<{A*gH(ren^q1A&m`~D=`s2&aJa3*`>YsUYabcdef - pqrst - this is a test file. We will show 5>2 and 3<5 and - try to remove non xml compatible characters. - """ - # run - clean_xml_soft = self.utils.clean_xml(in_xml) - clean_xml_strict = self.utils.clean_xml(in_xml, mode="strict") - # check - ET.fromstring("{}".format(clean_xml_soft)) - ET.fromstring("{}".format(clean_xml_strict)) - - # -- Thumbnails ---------------------------------------------------------- - def test_thumbnails_loader_complete(self): - """Test filenames errors""" - expected_dict = {"1234569732454beca1ab3ec1958ffa50": "resources/table.svg"} - self.assertDictEqual( - self.utils.thumbnails_mngr(self.thumbs_complete), expected_dict - ) - - def test_thumbnails_loader_bad_notTable(self): - """Test filenames errors""" - thumbs_loaded = self.utils.thumbnails_mngr(r"table_thumbnails.xlsx") - self.assertEqual(thumbs_loaded, {None: (None, None)}) - - def test_thumbnails_loader_bad_sheetname(self): - """Test filenames errors""" - with self.assertRaises(KeyError): - self.utils.thumbnails_mngr(self.thumbs_bad_sheetname) - - def test_thumbnails_loader_bad_headers(self): - """Test filenames errors""" - with self.assertRaises(KeyError): - self.utils.thumbnails_mngr(self.thumbs_bad_header)