From 942f0ef6b84b9236c71a564afa1b24b0e40a103d Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 12 May 2024 15:42:28 +0000 Subject: [PATCH] style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf This commit fixes the style issues introduced in 73b629b according to the output from Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf. Details: None --- tests/test_transaction.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_transaction.py b/tests/test_transaction.py index 36a78442a..6183c3551 100644 --- a/tests/test_transaction.py +++ b/tests/test_transaction.py @@ -1,6 +1,8 @@ import unittest + from transaction import Transaction + class TestTransaction(unittest.TestCase): def test_create_transaction(self): transaction = Transaction("sender", "receiver", 100) @@ -8,11 +10,13 @@ def test_create_transaction(self): self.assertEqual(transaction.receiver, "receiver") self.assertEqual(transaction.amount, 100) self.assertEqual(transaction.timestamp, 1234567890) - self.assertEqual(transaction.hash, "hash_value") # Replace with actual hash value + # Replace with actual hash value + self.assertEqual(transaction.hash, "hash_value") def test_calculate_hash(self): transaction = Transaction("sender", "receiver", 100) - self.assertEqual(transaction.calculate_hash(), "hash_value") # Replace with actual hash value + # Replace with actual hash value + self.assertEqual(transaction.calculate_hash(), "hash_value") def test_is_valid(self): transaction = Transaction("sender", "receiver", 100)