Skip to content

Commit

Permalink
修复seleniumTool init报错
Browse files Browse the repository at this point in the history
  • Loading branch information
lovesoo committed Dec 14, 2017
1 parent 0f5d301 commit a2e1126
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Tests/test_baiduSearch.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# encoding: utf-8

import requests
import re
from nose.tools import *

from functools import partial

class check_response():
@staticmethod
Expand Down Expand Up @@ -53,6 +52,8 @@ def search(wd):
def test_BVT(self):
# 校验输入不同类型的wd时,百度是否均可正常搜索返回结果
# wd分类:中文,英文,数字
wd_list = [u'lovesoo', u'软件测试', u'12345']
wd_list = [u'lovesoo', u'自动化测试', u'12345']
for wd in wd_list:
yield test_baiduSearch.search, wd
f = partial(test_baiduSearch.search, wd)
f.description = wd.encode('utf-8')
yield (f,)
1 change: 0 additions & 1 deletion Util/seleniumTool/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding=utf-8
from basePageUtil import *
from loginPageUtil import *
from indexPageUtil import *

0 comments on commit a2e1126

Please sign in to comment.