@@ -24,7 +24,7 @@ def test_validate_net(
2424 verbose ,
2525 caplog ,
2626):
27- with caplog .at_level (logging .WARNING ):
27+ with caplog .at_level (logging .WARNING , logger = "decoupler" ):
2828 vnet = dc .pp .net ._validate_net (net = net , verbose = verbose )
2929 assert caplog .text == ""
3030 assert net .shape == vnet .shape
@@ -34,7 +34,7 @@ def test_validate_net(
3434
3535 net .drop (columns = ["weight" ], inplace = True )
3636 assert "weight" not in net .columns
37- with caplog .at_level (logging .WARNING ):
37+ with caplog .at_level (logging .WARNING , logger = "decoupler" ):
3838 vnet = dc .pp .net ._validate_net (net = net , verbose = verbose )
3939 if verbose :
4040 assert len (caplog .text ) > 0
@@ -119,7 +119,7 @@ def test_adjmat(
119119 caplog ,
120120):
121121 features = adata .var_names
122- with caplog .at_level (logging .INFO ):
122+ with caplog .at_level (logging .INFO , logger = "decoupler" ):
123123 sources , targets , adjmat = dc .pp .adjmat (features = features , net = net , verbose = verbose )
124124 adjmat = adjmat .ravel ()
125125 non_zero_adjmat = adjmat [adjmat != 0.0 ]
@@ -143,7 +143,7 @@ def test_idxmat(
143143 caplog ,
144144):
145145 features = adata .var_names
146- with caplog .at_level (logging .INFO ):
146+ with caplog .at_level (logging .INFO , logger = "decoupler" ):
147147 sources , cnct , starts , offsets = dc .pp .idxmat (features = features , net = net , verbose = verbose )
148148 if verbose :
149149 assert len (caplog .text ) > 0
0 commit comments