@@ -14,8 +14,9 @@ def test_parse_and_report_at_38000(self):
14
14
input_str = """
15
15
uint16_t rawData[7] = {
16
16
20100, 20472, 15092, 30704, 20102, 20472, 15086};"""
17
- pronto .parse_and_report (input_str , 38000 , 100000 , True , False , False ,
18
- output )
17
+ pronto .parse_and_report (input_str , hertz = 38000 , end_usecs = 100000 ,
18
+ use_initial = True , generate_code = False ,
19
+ verbose = False , output = output )
19
20
self .assertEqual (
20
21
output .getvalue (),
21
22
"Pronto code = "
@@ -28,8 +29,9 @@ def test_parse_and_report_at_36000(self):
28
29
input_str = """
29
30
uint16_t rawData[7] = {
30
31
20100, 20472, 15092, 30704, 20102, 20472, 15086};"""
31
- pronto .parse_and_report (input_str , 36000 , 100000 , True , False , False ,
32
- output )
32
+ pronto .parse_and_report (input_str , hertz = 36000 , end_usecs = 100000 ,
33
+ use_initial = True , generate_code = False ,
34
+ verbose = False , output = output )
33
35
self .assertEqual (
34
36
output .getvalue (),
35
37
"Pronto code = "
@@ -42,8 +44,9 @@ def test_parse_and_report_at_57600(self):
42
44
input_str = """
43
45
uint16_t rawData[7] = {
44
46
20100, 20472, 15092, 30704, 20102, 20472, 15086};"""
45
- pronto .parse_and_report (input_str , 57600 , 100000 , True , False , False ,
46
- output )
47
+ pronto .parse_and_report (input_str , hertz = 57600 , end_usecs = 100000 ,
48
+ use_initial = True , generate_code = False ,
49
+ verbose = False , output = output )
47
50
self .assertEqual (
48
51
output .getvalue (),
49
52
"Pronto code = "
@@ -56,8 +59,9 @@ def test_using_repeat(self):
56
59
input_str = """
57
60
uint16_t rawData[7] = {
58
61
20100, 20472, 15092, 30704, 20102, 20472, 15086};"""
59
- pronto .parse_and_report (input_str , 38000 , 30000 , False , False , False ,
60
- output )
62
+ pronto .parse_and_report (input_str , hertz = 38000 , end_usecs = 30000 ,
63
+ use_initial = False , generate_code = False ,
64
+ verbose = False , output = output )
61
65
self .assertEqual (
62
66
output .getvalue (),
63
67
"Pronto code = "
@@ -70,7 +74,9 @@ def test_generate_code_output(self):
70
74
input_str = """
71
75
uint16_t rawData[7] = {
72
76
20100, 20472, 15092, 30704, 20102, 20472, 15086};"""
73
- pronto .parse_and_report (input_str , 38000 , 30000 , True , True , False , output )
77
+ pronto .parse_and_report (input_str , 38000 , end_usecs = 30000 ,
78
+ use_initial = True , generate_code = True ,
79
+ verbose = False , output = output )
74
80
self .assertEqual (
75
81
output .getvalue (),
76
82
"uint16_t pronto[12] = {0x0000, 0x006D, 0x0004, 0x0000, 0x02fb, "
0 commit comments