Skip to content

Commit

Permalink
fix for bug 77
Browse files Browse the repository at this point in the history
  • Loading branch information
evelynmitchell committed Dec 29, 2023
1 parent 5ad258f commit bd81992
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/utils/test_cast_tuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,3 @@ def test_cast_tuple_parametrized(value, depth, expected):
def test_cast_tuple_exception():
with pytest.raises(TypeError):
cast_tuple(5, "a")


# Test with mock and monkeypatch
def test_cast_tuple_with_mock_and_monkeypatch(monkeypatch):
def mock_isinstance(val, t):
return False

monkeypatch.setattr("builtins.isinstance", mock_isinstance)
assert cast_tuple((1, 2), 1) == ((1, 2),)

0 comments on commit bd81992

Please sign in to comment.