Skip to content

Commit

Permalink
fix test and bump minor again
Browse files Browse the repository at this point in the history
  • Loading branch information
mitshell committed Jul 14, 2024
1 parent 1c3fad2 commit 9093d38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from setuptools import setup, find_packages

# Pycrate Version
VERSION = "0.7.6"
VERSION = "0.7.7"


# get long description from the README.md
Expand Down
8 changes: 4 additions & 4 deletions test/test_asn1rt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2489,6 +2489,8 @@ def _test_tcap_map():
def _test_tcap_map_rt():
# use a specific TCAP-MAP buffer for testing some more ASN.1 runtime features
# take care to not test for too-TCAP-MAP features, that could change in future versions

from pycrate_asn1dir import TCAP_MAP
#
M = GLOBAL.MOD['TCAP-MAP-Messages']['TCAP-MAP-Message']
p = pkts_tcap_map[1]
Expand All @@ -2497,11 +2499,9 @@ def _test_tcap_map_rt():
assert( M.get_internals()['root'] == ['unidirectional', 'begin', 'end', 'continue', 'abort'] )
assert( M.get_typeref() == M._tr == GLOBAL.MOD['TCAPMessages']['TCMessage'] )
#
prot = M.get_proto(w_open=True, w_opt=True, w_enum=True, print_recurs=False, blacklist=set())
prot = M.get_proto(w_opt=True, w_enum=True)
assert( len(prot[1]) == 5 and len(prot[1]['begin'][1]) == 3 )
comp = M.get_complexity(w_open=False, w_opt=False, print_recurs=False, blacklist=set())
assert( comp == (23, 7, []) )
comp = M.get_complexity(w_open=True, w_opt=True, print_recurs=False, blacklist=set())
comp = M.get_complexity()
assert( comp[0] >= 20156 and comp[1] >= 19 and len(comp[2]) >= 20 )
#
M.convert_named_val()
Expand Down

0 comments on commit 9093d38

Please sign in to comment.