ADD file via upload

This commit is contained in:
hello32 2022-08-22 23:30:33 +08:00
parent 6bf245c584
commit 5d4fcc677b
1 changed files with 20 additions and 0 deletions

20
test_demo.py Normal file
View File

@ -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)