test: add example tests on httpbin

This commit is contained in:
debugtalk
2020-05-16 12:55:30 +08:00
parent bad461744a
commit 103f403fc4
5 changed files with 170 additions and 2 deletions

View File

@@ -123,9 +123,9 @@ def multipart_encoder(**kwargs):
is_exists_file = os.path.isfile(value)
else:
# value is not absolute file path, check if it is relative file path
from httprunner.loader import get_pwd
from httprunner.loader import project_working_directory
_file_path = os.path.join(get_pwd(), value)
_file_path = os.path.join(project_working_directory, value)
is_exists_file = os.path.isfile(_file_path)
if is_exists_file: