Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pytest
- @pytest.mark.parametrize("A,B", [
- (1, 1),
- (1, 2),
- (2, 1),
- (2, 2),
- ])
- @pytest.mark.incremental
- class TestParams:
- def test_one(self, A, B):
- print "one", A, B
- def test_two(self, A, B):
- print "two", A, B
- .one 1 1
- .one 1 2
- .one 2 1
- .one 2 2
- .two 1 1
- .two 1 2
- .two 2 1
- .two 2 2
- .one 1 1
- .two 1 1
- .one 1 2
- .two 1 2
- .one 2 1
- .two 2 1
- .one 2 2
- .two 2 2
Add Comment
Please, Sign In to add comment