Skip to content

Commit db8ca48

Browse files
authored
Merge branch 'main' into two_side_probes
2 parents 9df68df + f9e20a8 commit db8ca48

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 25.9.0
9+
rev: 25.11.0
1010
hooks:
1111
- id: black
1212
files: ^src/|^tests/

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
[project]
22
name = "probeinterface"
3-
version = "0.3.1"
3+
version = "0.3.2"
44
authors = [
55
{ name="Samuel Garcia", email="[email protected]" },
66
{ name="Alessio Buccino", email="[email protected]" },
7+
{ name="Chris Halcrow", email="[email protected]" }
78
]
89

910
description = "Python package to handle probe layout, geometry and wiring to device."

tests/test_library.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ def test_get_from_cache():
5656
probe = get_from_cache(manufacturer, probe_name)
5757
assert isinstance(probe, Probe)
5858

59-
tag = get_tags_in_library()[0]
60-
probe = get_from_cache(manufacturer, probe_name, tag=tag)
61-
assert probe is None # because we did not download with this tag
62-
download_probeinterface_file(manufacturer, probe_name, tag=tag)
63-
probe = get_from_cache(manufacturer, probe_name, tag=tag)
64-
_remove_from_cache(manufacturer, probe_name, tag=tag)
65-
assert isinstance(probe, Probe)
66-
6759
probe = get_from_cache("yep", "yop")
6860
assert probe is None
6961

@@ -74,6 +66,18 @@ def test_get_probe():
7466
assert probe.get_contact_count() == 32
7567

7668

69+
@pytest.mark.library
70+
def test_get_from_cache_with_tag():
71+
tag = get_tags_in_library()[0]
72+
probe = get_from_cache(manufacturer, probe_name, tag=tag)
73+
assert probe is None # because we did not download with this tag
74+
download_probeinterface_file(manufacturer, probe_name, tag=tag)
75+
probe = get_from_cache(manufacturer, probe_name, tag=tag)
76+
_remove_from_cache(manufacturer, probe_name, tag=tag)
77+
assert isinstance(probe, Probe)
78+
79+
80+
@pytest.mark.library
7781
def test_available_tags():
7882
tags = get_tags_in_library()
7983
if len(tags) > 0:

0 commit comments

Comments
 (0)