示例#1
0
def test_cannot_fizzbuzz_float():
    with pytest.raises(TypeError):
        fisbass(5.5)
示例#2
0
def test_fissbass_takes_number_returns_string():
    result = fisbass(1)
    assert isinstance(result, str)
示例#3
0
def test_cannot_fizzbuzz_none():
    with pytest.raises(TypeError):
        fisbass(None)
示例#4
0
def test_cannot_fizzbuzz_str():
    with pytest.raises(TypeError):
        fisbass("nope")
示例#5
0
def test_fiss_3__5_return(number):
    result = fisbass(number)
    assert result == "fizzbuzz"
示例#6
0
def test_fisbass_regular_returns_numbers(number, expected):
    result = fisbass(number)
    assert result == expected