File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 3131 pip install .[test]
3232 - name : Pytest
3333 run : |
34- pytest -v
34+ pytest -m "not library" -v
35+ - name : Pytest library tests
36+ if : ${{ matrix.os == 'ubuntu-latest' }}
37+ run : |
38+ pytest -m library -v
Original file line number Diff line number Diff line change @@ -58,6 +58,11 @@ docs = [
5858 " pandas" ,
5959]
6060
61+ [tool .pytest .ini_options ]
62+ markers = [
63+ " library" ,
64+ ]
65+
6166[tool .coverage .run ]
6267omit = [
6368 " tests/*" ,
Original file line number Diff line number Diff line change @@ -82,13 +82,15 @@ def test_available_tags():
8282 assert len (tag ) > 0
8383
8484
85+ @pytest .mark .library
8586def test_list_manufacturers ():
8687 manufacturers = list_manufacturers ()
8788 assert isinstance (manufacturers , list )
8889 assert "neuronexus" in manufacturers
8990 assert "imec" in manufacturers
9091
9192
93+ @pytest .mark .library
9294def test_list_probes ():
9395 manufacturers = list_all_probes ()
9496 for manufacturer in manufacturers :
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ def test_plot_probegroup():
3939 plot_probegroup (probegroup , same_axes = False )
4040
4141 # remove when plot_probe_group has been removed
42- plot_probe_group (probegroup )
42+ with pytest .warns (DeprecationWarning ):
43+ plot_probe_group (probegroup )
4344
4445 # 3d
4546 probegroup_3d = ProbeGroup ()
You can’t perform that action at this time.
0 commit comments