Skip to content

Commit

Permalink
Rename database to avoid gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Feb 25, 2024
1 parent 2c6a3c5 commit 2d621bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file added tests/bitcoinlib_encrypted.db
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/test_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2d621bf

Please sign in to comment.