Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.1.4 #257

Merged
merged 5 commits into from
Oct 16, 2024
Merged

1.1.4 #257

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading