ADD file via upload
This commit is contained in:
parent
6bf245c584
commit
5d4fcc677b
|
@ -0,0 +1,20 @@
|
|||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def login(request):
|
||||
username, pwd = request.param
|
||||
if username == "ok" and pwd == "123456":
|
||||
return "ok"
|
||||
else:
|
||||
return "notok"
|
||||
|
||||
|
||||
class TestDemo:
|
||||
pytestmark = pytest.mark.parametrize("login", [("ok", "123456"), ("ok1", "123456"), ("ok", "1234562")],
|
||||
indirect=True)
|
||||
|
||||
def test_demo(self, login):
|
||||
print(login)
|
||||
|
||||
|
Loading…
Reference in New Issue