Exemple #1
0
class TestProfile:

    def setup(self):
        self.profile = App().start().main().goto_profile()

    def test_login_by_password(self):
        assert "错误"  in self.profile.login_by_password("1386456123","123456")
Exemple #2
0
class TestProfile:
    def setup(self):
        self.profile = App().start().main().goto_profile()

    @pytest.mark.parametrize("phone, password", [("13424103317", "123456")])
    def test_login_by_password(self, phone, password):
        assert "错误" in self.profile.login_by_password(phone, password)
class TestProfile:
    def setup(self):
        self.profile = App().start().main().goto_profile()

    def test_login_by_password(self):
        assert '错误' in self.profile.login_by_password('13522221111', '123456')

    def teardown(self):
        pass