Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
holgern committed Mar 7, 2023
1 parent c436604 commit 8333a35
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
22 changes: 12 additions & 10 deletions tests/test_addresses.py
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
import unittest

from pymempool import MempoolAPI


class TestAddresses(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.address = "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv"

def test_address(self):
api = MempoolAPI()

ret = api.get_address(self.address)
self.assertIsInstance(ret, dict)

def test_address_transactions(self):
api = MempoolAPI()

ret = api.get_address_transactions(self.address)
self.assertIsInstance(ret, list)

def test_address_transactions_chain(self):
api = MempoolAPI()

ret = api.get_address_transactions_chain(self.address)
self.assertIsInstance(ret, list)

def test_address_transactions_mempool(self):
api = MempoolAPI()

ret = api.get_address_transactions_mempool(self.address)
self.assertIsInstance(ret, list)

def test_address_transactions_utxo(self):
api = MempoolAPI()

ret = api.get_address_utxo(self.address)
self.assertIsInstance(ret, list)
self.assertIsInstance(ret, list)
4 changes: 3 additions & 1 deletion tests/test_general.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import unittest

from pymempool import MempoolAPI


class TestGeneral(unittest.TestCase):
def test_difficulty(self):
api = MempoolAPI()
ret = api.get_difficulty_adjustment()
self.assertTrue(len(ret) > 0)
self.assertTrue(len(ret) > 0)

0 comments on commit 8333a35

Please sign in to comment.