Horje
run multiple test cases pytest Code Example
run multiple test cases pytest
@pytest.mark.parametrize("input, expected", [
 (1, True),
 (2, True)
])
def test_check_value(input, expected):
  assert input > 0 == expected
how to group multiple test in pytest
# content of test_class.py
class TestClass:
    def test_one(self):
        x = "this"
        assert "h" in x

    def test_two(self):
        x = "hello"
        assert hasattr(x, "check")




Python

Related
# swap variables Code Example # swap variables Code Example
friends phoebe Code Example friends phoebe Code Example
python runtime Code Example python runtime Code Example
separate alphanumeric list Code Example separate alphanumeric list Code Example
google colab python version Code Example google colab python version Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11