Skip to content

Commit

Permalink
sample organised
Browse files Browse the repository at this point in the history
  • Loading branch information
impratikjaiswal committed Jun 17, 2024
1 parent 0462006 commit bf9ce99
Show file tree
Hide file tree
Showing 7 changed files with 4,701 additions and 3,238 deletions.
2 changes: 1 addition & 1 deletion asn1_play/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

from incremental import Version

__version__ = Version("asn1_play", 7, 0, 0)
__version__ = Version("asn1_play", 8, 0, 0)
__all__ = ["__version__"]
10 changes: 8 additions & 2 deletions asn1_play/main/data_type/data_type_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,20 @@ def to_dic(self, data):
:return:
"""
set_defaults(data, None)
return {
asn1_data = {}
if data.asn1_element and isinstance(data.asn1_element, Asn1):
asn1_data.update({PhKeys.ASN1_SCHEMA: data.asn1_element.asn1_schema.get_name()})
asn1_data.update({PhKeys.ASN1_OBJECT: data.asn1_element.asn1_object})
asn1_data.update({PhKeys.ASN1_OBJECT_ALTERNATE: data.asn1_element.asn1_object_alternate})
asn1_data.update({PhKeys.FETCH_ASN1_OBJECTS_LIST: data.asn1_element.fetch_asn1_objects_list})
common_data = {
PhKeys.INPUT_DATA: data.input_data,
PhKeys.REMARKS: data.get_remarks_as_str(),
PhKeys.DATA_GROUP: data.data_group,
PhKeys.INPUT_FORMAT: data.input_format,
PhKeys.OUTPUT_FORMAT: data.output_format,
PhKeys.ASN1_ELEMENT: data.asn1_element,
PhKeys.OUTPUT_FILE: data.output_file,
PhKeys.RE_PARSE_OUTPUT: data.re_parse_output,
PhKeys.OUTPUT_FILE_NAME_KEYWORD: data.output_file_name_keyword,
}
return {**common_data, **asn1_data}
3 changes: 1 addition & 2 deletions asn1_play/main/data_type/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ def set_data_pool(self):
#
Data(
remarks='Asn1 Objects Static List; v3_1',
asn1_element=Asn1(Asn1Versions.GSMA_SGP_22_v3_1),
FETCH_ASN1_OBJECTS_LIST=True
asn1_element=Asn1(Asn1Versions.GSMA_SGP_22_v3_1, fetch_asn1_objects_list=True),
),
#
Data(
Expand Down
1,680 changes: 1,083 additions & 597 deletions asn1_play/test/log/pycharm_SGP22_v2_4-epp_v3_2.log

Large diffs are not rendered by default.

1,682 changes: 1,084 additions & 598 deletions asn1_play/test/log/pycharm_SGP22_v3_0_0-epp_v3_1.log

Large diffs are not rendered by default.

1,682 changes: 1,084 additions & 598 deletions asn1_play/test/log/pycharm_SGP22_v3_0_0-epp_v3_2.log

Large diffs are not rendered by default.

2,880 changes: 1,440 additions & 1,440 deletions asn1_play/test/log/pycharm_SGP22_v3_0_0-epp_v3_2_debug.log

Large diffs are not rendered by default.

0 comments on commit bf9ce99

Please sign in to comment.