Skip to content

Commit

Permalink
✅ Fine-tune coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
o-laurent committed Jan 3, 2024
1 parent f1f2762 commit bbbca63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/layers/test_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_conv_two_estimators_even(self, img_input_even: torch.Tensor):

def test_conv_error(self):
with pytest.raises(ValueError):
_ = MaskedLinear(8, 2, num_estimators=1, scale=None)
MaskedConv2d(10, 2, num_estimators=2, kernel_size=1, scale=None)

with pytest.raises(ValueError):
_ = MaskedLinear(10, 2, num_estimators=1, scale=0)
MaskedConv2d(10, 2, num_estimators=2, kernel_size=1, scale=0)
1 change: 1 addition & 0 deletions tests/transforms/test_corruptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def test_gaussian_blur(self):
transform(inputs)
transform = GaussianBlur(0)
transform(inputs)
print(transform)

def test_glass_blur(self):
with pytest.raises(ValueError):
Expand Down

0 comments on commit bbbca63

Please sign in to comment.