From 2d621bf88ad135f87dd4c571b08102985013c410 Mon Sep 17 00:00:00 2001 From: Cryp Toon Date: Sun, 25 Feb 2024 09:58:12 +0100 Subject: [PATCH] Rename database to avoid gitignore --- tests/bitcoinlib_encrypted.db | Bin 0 -> 139264 bytes tests/test_security.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 tests/bitcoinlib_encrypted.db diff --git a/tests/bitcoinlib_encrypted.db b/tests/bitcoinlib_encrypted.db new file mode 100644 index 0000000000000000000000000000000000000000..12d45fe411f4a47e39dc5639ecdd84e5cbc4047e GIT binary patch literal 139264 zcmeI*3w#qr;s@~EY?>ye?G~`afkwF{iCyvAK^7Ic|Z97WUA^*S9zQCE}yL&<;t&lTi@(*K40 zrDdPn`*<}qa`xm1F)({k45O9)v=@`l4$L-*2 z9b}w+R2uoQ)l_q74$kQ`yM?roWp=?*V|P02WocHkU@kNBTv~A2NNKsT78_@&GV$hW z&Lr5}oY^{hg4w}yBNa?qe#ojw9GoHDkd>NlNHt{X44I>h>7z38MrIgtj5*nHG&3Nf zj&t)QRp}$MM`mP2kvuW%D-`=4`wIJYmokVz5P$##AOHafKmY;|fB*y_009Veo4^%J zDjm`lKzbdRcqT1$qS!y6h++n4e7ykT_&?2lLXm&?fdB*`009U<00Izz00bZa0SG|g zXCTmrW>To&wFM@D;{|d2pJqR$$Upo*00Izz00bZa0SG_<0uX=z1R(Hp5a`3CXj+~B zOXL5`DR%kKA%n;R1Rwwb2tWV=5P$##AOHafK%gfJG|;`N%$O8fn~(3*v)D2X)oCt|+f~DJNonFU1x!Mti+nU& zEHxgdK&IKu&I&HgY_+;Mo;TT@R<1!B|8Jq#mY(c`v_Sv@5P$##AOHafKmY;|fB*y_ z&?SL>Or|DGpMp64uZlcH#qNl)L@T0xtC>!|;0FQ_fB*y_0D+&2z*4iSKSiggX|=l8 zu{2tvwNMGPCP$;xq)-VFzEJ_4cT_-^9>Gu#tTBC2_1TySduwJM)EO4vFy-HGzqM!G zuAJl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>|S`9(e? zCI0rXC_$y2pVJY!Wtkp`KpHC%(to8*_i$zw?9aK-Ya+OAtZS8t71X^n~WEn)L4UPmEc>y;g@ z)qB-No1A*DK&!tZQkzdQ86S2v!O>3n%KCMtw&*`huPDyO9n8;TbQY-l@ zC@RACBOUJ{S_nV@0uUeq&5?s6wG%Vx<{@Er4S{nRamO99EAr17+QCl3AEupi66qkE z98XA*>!tDk-4y#SyBnJZ0uX=z1Rwwb2tWV=5P$##AOL|LC2$SXg$Dp!&2)bMKd%4p zQQH-XfdB*`009U<00Izz00bZa0SH`90VP9;*Z)%*oc~`=R>TDX2tWV=5P$##AOHaf zKmY;|=urYnMkAj8Ycw%pvf_GF+K?CsKmY;|fB*y_009U<00Izz00b_xfH?k-^Z(0? zis&E!0SG_<0uX=z1Rwwb2tWV=Jxl=O|2=GjAUP0#00bZa0SG_<0uX=z1Rwx`A3*@) z|33mMqJ#hhAOHafKmY;|fB*y_009W}FaezZ_pl9uQ8Lf3qb;c@JRU@C}a2e`dRknz)k5l<{FHInh z?-zyi{=cs%_9FY$<;@^sg8&2|009U<00Izz00bZa0SG{#I|Woq((|BDD3uzuMmqoh tT0H;%x;xW^bwdCG5P$##AOHafKmY;|fB*y_aG3=n7@Afolnkv={T~!Rh?W2V literal 0 HcmV?d00001 diff --git a/tests/test_security.py b/tests/test_security.py index 6babfcdb..4448d5db 100644 --- a/tests/test_security.py +++ b/tests/test_security.py @@ -119,12 +119,12 @@ def test_security_wallet_field_encryption_password(self): self.assertNotEqual(encrypted_main_key_private, HDKey(pk).private_byte) def test_security_encrypted_db_incorrect_password(self): - db = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'bitcoinlib_encrypted.sqlite') + db = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'bitcoinlib_encrypted.db') self.assertRaisesRegex(EncodingError, "Could not decrypt value \(password incorrect\?\): MAC check failed", Wallet, 'wlt-encryption-test', db_uri=db) def test_security_encrypted_db_no_password(self): - db = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'bitcoinlib_encrypted.sqlite') + db = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'bitcoinlib_encrypted.db') if os.environ.get('DB_FIELD_ENCRYPTION_PASSWORD') or os.environ.get('DB_FIELD_ENCRYPTION_KEY'): self.skipTest("This test only runs when no encryption keys are provided") self.assertRaisesRegex(ValueError, "Data is encrypted please provide key in environment",