Skip to content

Commit e30178e

Browse files
Updated test case outputs to fix minor discrepencies in assertion
1 parent 768257c commit e30178e

4 files changed

+81
-38
lines changed

tests/client_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def test_whisper(client, data_dir, processing_mode, output_mode, input_file):
4646

4747
exp_basename = f"{Path(input_file).stem}.{processing_mode}.{output_mode}.txt"
4848
exp_file = os.path.join(data_dir, "expected", exp_basename)
49+
4950
assert_extracted_text(exp_file, whisper_result, processing_mode, output_mode)
5051

5152

Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
11

22

3-
Name STEPHEN YOUNG
43

5-
Address 123 MAIN ST.
4+
Name STEPHEN YOUNG
65

7-
Are you: [ ] Married [X] Single
86

9-
How did you hear about us?
7+
Address 123 MAIN ST.
108

11-
[ ] Search Ad
12-
[ ] Facebook
13-
[ ] X (formerly Twitter)
14-
[ ] This mailer
15-
[X] Other (Explain) SAW THE SIGN WHEN THE LOCATION
169

17-
WAS BEING BUILT
10+
Are you: [ ] Married [X] Single
1811

19-
By signing, I agree to receive all communications from acme, inc.
2012

21-
Signature
13+
How did you hear about us?
2214

23-
10/15/23
24-
Date
15+
16+
[ ] Search Ad
17+
[ ] Facebook
18+
[ ] X (formerly Twitter)
19+
[ ] This mailer
20+
[X] Other (Explain) SAW THE SIGN WHEN THE LOCATION
21+
22+
23+
WAS BEING BUILT
24+
25+
26+
By signing, I agree to receive all communications from acme, inc.
27+
28+
29+
Signature
30+
31+
32+
10/15/23
33+
Date
2534
<<<
35+
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,59 @@
11

22

3-
BURGER SEIGNEUR
43

5-
No. 35, 80 feet road,
4+
BURGER SEIGNEUR
5+
6+
7+
No.35, 80 feet road,
68
HAL 3rd Stage,
79
Indiranagar, Bangalore
8-
GST: 29AAHFL9534H1ZV
10+
GST: 29AAHFL9534H1ZV
11+
12+
13+
Order Number : T2- 57
914

10-
Order Number : T2- 57
1115

12-
Type : Table
16+
Type : Table
1317

14-
Table Number : 2
1518

16-
Bill No .: T2 -- 126653
19+
Table Number: 2
20+
21+
22+
Bill No .: T2 -- 126653
1723
Date:2023-05-31 23:16:50
1824
Kots:63
1925

26+
2027
Item Qty Amt
2128

29+
2230
Jack The
31+
32+
2333
Ripper 1 400.00
2434
Plain Fries +
2535
Coke 300 ML 1 130.00
2636

37+
2738
Total Qty: 2
2839
SubTotal: 530.00
2940

30-
GST@5% 26.50
31-
CGST @2.5%. 13.25
41+
42+
GST@5% 26.50
43+
CGST @2.5% 13.25
3244
SGST @2.5% 13.25
3345

34-
Round Off : 0.50
3546

36-
Total Invoice Value: 557
47+
Round Off: 0.50
48+
Total Invoice Value: 557
49+
3750

3851
PAY: 557
3952

40-
Thank you, visit again!
53+
54+
Thank you, visit again!
55+
4156

4257
Powered by - POSIST
4358
<<<
59+
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,59 @@
11

22

3-
BURGER SEIGNEUR
43

5-
No. 35, 80 feet road,
4+
BURGER SEIGNEUR
5+
6+
7+
No.35, 80 feet road,
68
HAL 3rd Stage,
79
Indiranagar, Bangalore
8-
GST: 29AAHFL9534H1ZV
10+
GST: 29AAHFL9534H1ZV
11+
12+
13+
Order Number : T2- 57
914

10-
Order Number : T2- 57
1115

12-
Type : Table
16+
Type : Table
1317

14-
Table Number : 2
1518

16-
Bill No .: T2 -- 126653
19+
Table Number: 2
20+
21+
22+
Bill No .: T2 -- 126653
1723
Date:2023-05-31 23:16:50
1824
Kots:63
1925

26+
2027
Item Qty Amt
2128

29+
2230
Jack The
31+
32+
2333
Ripper 1 400.00
2434
Plain Fries +
2535
Coke 300 ML 1 130.00
2636

37+
2738
Total Qty: 2
2839
SubTotal: 530.00
2940

30-
GST@5% 26.50
31-
CGST @2.5%. 13.25
41+
42+
GST@5% 26.50
43+
CGST @2.5% 13.25
3244
SGST @2.5% 13.25
3345

34-
Round Off : 0.50
3546

36-
Total Invoice Value: 557
47+
Round Off: 0.50
48+
Total Invoice Value: 557
49+
3750

3851
PAY: 557
3952

40-
Thank you, visit again!
53+
54+
Thank you, visit again!
55+
4156

4257
Powered by - POSIST
4358
<<<
59+

0 commit comments

Comments
 (0)