Skip to content

Commit

Permalink
Re-enabled LCSC test and added that missing silly space
Browse files Browse the repository at this point in the history
  • Loading branch information
eeintech committed Jun 2, 2022
1 parent 671dff3 commit 5088992
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion kintree/search/lcsc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_api() -> bool:

test_success = True
expected = {
'productIntroEn': '25V 100pF C0G ±5% 0201 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHS',
'productIntroEn': '25V 100pF C0G ±5% 0201 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHS',
'productCode': 'C2181718',
'brandNameEn': 'TDK',
'productModel': 'C0603C0G1E101J030BA',
Expand Down
14 changes: 7 additions & 7 deletions run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from kintree.config import config_interface
from kintree.database import inventree_api, inventree_interface
from kintree.kicad import kicad_interface
from kintree.search import digikey_api, mouser_api # , lcsc_api
from kintree.search import digikey_api, mouser_api, lcsc_api
from kintree.search.snapeda_api import test_snapeda_api
from kintree.setup_inventree import setup_inventree

Expand Down Expand Up @@ -94,12 +94,12 @@ def check_result(status: str, new_part: bool) -> bool:
cprint('[ PASS ]')

# Test LCSC API
# pretty_test_print('[MAIN]\tLCSC API Test')
# if not lcsc_api.test_api():
# cprint('[ FAIL ]')
# sys.exit(-1)
# else:
# cprint('[ PASS ]')
pretty_test_print('[MAIN]\tLCSC API Test')
if not lcsc_api.test_api():
cprint('[ FAIL ]')
sys.exit(-1)
else:
cprint('[ PASS ]')

# Setup InvenTree
cprint('\n-----')
Expand Down

0 comments on commit 5088992

Please sign in to comment.