Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanz committed Oct 6, 2023
1 parent a1b6cd8 commit 0dbb0c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 34 deletions.
5 changes: 4 additions & 1 deletion test/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def test_metadata_registry_decode_v14(self):
self.assertGreater(len(metadata_obj.get_signed_extensions().items()), 0)

# Test runtime api
self.assertGreater(len(metadata_obj.get_runtime_apis()), 0)
self.assertIsNotNone(metadata_obj.get_runtime_api('Core'))

def test_metadata_registry_decode_v15(self):
Expand All @@ -128,9 +129,11 @@ def test_metadata_registry_decode_v15(self):

self.assertGreater(len(metadata_obj.get_signed_extensions().items()), 0)

# Test runtime api
self.assertGreater(len(metadata_obj.get_runtime_apis()), 0)
self.assertIsNotNone(metadata_obj.get_runtime_api('Core'))

method = metadata_obj.get_runtime_api('AccountNonceApi').get_method('account_nonce')
self.assertIsNotNone(metadata_obj.get_runtime_api('AccountNonceApi').get_method('account_nonce'))


# def test_pickle_test(self):
Expand Down
33 changes: 0 additions & 33 deletions test/test_runtime_call.py

This file was deleted.

0 comments on commit 0dbb0c4

Please sign in to comment.