@@ -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
7781def test_available_tags ():
7882 tags = get_tags_in_library ()
7983 if len (tags ) > 0 :
0 commit comments