Skip to content

Commit

Permalink
Merge pull request #257 from sparkmicro/dev
Browse files Browse the repository at this point in the history
1.1.4
  • Loading branch information
eeintech authored Oct 16, 2024
2 parents f49f276 + 34f2028 commit 345304e
Show file tree
Hide file tree
Showing 6 changed files with 412 additions and 376 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
git clone https://github.com/inventree/InvenTree/
mkdir InvenTree/static
cp tests/files/inventree_default_db.sqlite3 InvenTree/
cd InvenTree/ && git switch master && invoke install && invoke migrate && cd -
cd InvenTree/ && git switch stable && invoke install && invoke migrate && cd -
- name: Ki-nTree setup
run: |
invoke install
Expand Down
6 changes: 3 additions & 3 deletions kintree/search/element14_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ def test_api(store_url=None) -> bool:
'store_url': 'uk.farnell.com',
'part_number': '1N4148W-7-F',
'expected': {
'displayName': 'Small Signal Diode, Single, 100 V, 300 mA, 1.25 V, 4 ns, 2 A',
'brandName': 'DIODES INC.',
'translatedManufacturerPartNumber': '1N4148W-7-F',
'displayName': 'DIODE, ULTRAFAST RECOVERY, 300mA, 75V, SOD-123-2, FULL REEL',
'brandName': 'MULTICOMP PRO',
'translatedManufacturerPartNumber': '1N4148W-7-F.',
}
},
{
Expand Down
5 changes: 3 additions & 2 deletions kintree/search/mouser_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ def search_timeout():
from ..common.tools import cprint
cprint(f'[INFO] Warning: {error_message}', silent=False)
finally:
return request.get_clean_response()
# Mouser 0.1.6 API update: single part list is returned, instead of dict
return request.get_clean_response()[0]

# Query part number
try:
part = search_timeout()
part: dict = search_timeout()
except:
part = None

Expand Down
2 changes: 1 addition & 1 deletion kintree/search/snapeda_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_snapeda_api() -> bool:
result = False

# Test single result
response = fetch_snapeda_part_info('NTR06B2001CTRF')
response = fetch_snapeda_part_info('TPS61221DCKR')
data = parse_snapeda_response(response)
images = download_snapeda_images(data, silent=True)

Expand Down
Loading

0 comments on commit 345304e

Please sign in to comment.