@@ -30,28 +30,21 @@ class DataFormat(Enum):
3030# "structure" to hold a simple test case
3131class _TestCase :
3232 '''
33- @param input_data list representation of bundle | TODO hex option / fully hex?
34- @param expected_output either list representation of expected output bundle OR tuple for outcome (FAILURE_CODE, N), (NO_OUTPUT, N), etc.
35- @param policy_config decimal digit representing uint32 for policy configuration | TODO switch to a hex string?
36- @param impl - boolean, true if test is implemented, false if not (placeholder for empty test fixtures)
37- @param success - boolean, true if input bundle is expected to have an output bundle, false if error/no output
33+ @param input_data: list representation of bundle
34+ @param expected_output: either list representation of expected output bundle OR a string to search log output for match
35+ @param policy_config: decimal digit representing uint32 for policy configuration
36+ @param is_working: True if test working
37+ @param input/output_data_format: data format of input/ output
3838 '''
39- def __init__ (self , input_data , expected_output , policy_config ,
40- is_implemented : bool , is_working : bool , expect_success : bool ,
39+ def __init__ (self , input_data , expected_output , policy_config , is_working : bool ,
4140 input_data_format : DataFormat , expected_output_format : DataFormat ):
4241 self .input_data = input_data
4342 self .expected_output = expected_output
4443 self .policy_config = policy_config
4544
46- # can be removed once all tests are implemeneted
47- self .is_implemented = is_implemented
48-
4945 # can be removed once all tests are wworking
5046 self .is_working = is_working
5147
52- # true if test expected to succeed (return output bundle with no errors)
53- self .expect_success = expect_success
54-
5548 self .input_data_format = input_data_format
5649 self .expected_output_format = expected_output_format
5750
0 commit comments