Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
eeintech committed Jul 29, 2021
1 parent 0517b09 commit 120f3c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kintree/search/lcsc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test_api() -> bool:

test_success = True
expected = {
'productIntroEn': 'C0G 25V \u00b15% 100pF 0201 Multilayer Ceramic Capacitors MLCC - SMD\/SMT ROHS',
'productIntroEn': 'C0G 25V ±5% 100pF 0201 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHS',
'productCode': 'C2181718',
'brandNameEn': 'TDK',
'productModel': 'C0603C0G1E101J030BA',
Expand All @@ -111,6 +111,7 @@ def test_api() -> bool:
if test_success:
for key, value in expected.items():
if test_part[key] != value:
print(f'"{test_part[key]}" <> "{value}"')
test_success = False
break

Expand Down

0 comments on commit 120f3c6

Please sign in to comment.