diff --git a/httprunner/__init__.py b/httprunner/__init__.py index e41047bc..8faea0d1 100644 --- a/httprunner/__init__.py +++ b/httprunner/__init__.py @@ -1 +1,3 @@ +# encoding: utf-8 + from httprunner.task import HttpRunner diff --git a/httprunner/built_in.py b/httprunner/built_in.py index b36df3f1..cafa4f32 100644 --- a/httprunner/built_in.py +++ b/httprunner/built_in.py @@ -1,6 +1,9 @@ +# encoding: utf-8 + """ Built-in dependent functions used in YAML/JSON testcases. """ + import datetime import json import random diff --git a/httprunner/cli.py b/httprunner/cli.py index cdf77a20..93f259e0 100644 --- a/httprunner/cli.py +++ b/httprunner/cli.py @@ -1,3 +1,5 @@ +# encoding: utf-8 + import argparse import multiprocessing import os diff --git a/httprunner/client.py b/httprunner/client.py index c43f6f38..4d7ff73c 100644 --- a/httprunner/client.py +++ b/httprunner/client.py @@ -1,3 +1,5 @@ +# encoding: utf-8 + import re import time diff --git a/httprunner/compat.py b/httprunner/compat.py index 056c5aff..3753affc 100644 --- a/httprunner/compat.py +++ b/httprunner/compat.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +# encoding: utf-8 """ httprunner.compat diff --git a/httprunner/context.py b/httprunner/context.py index eded3e88..2aefee86 100644 --- a/httprunner/context.py +++ b/httprunner/context.py @@ -1,3 +1,5 @@ +# encoding: utf-8 + import copy import os import re diff --git a/httprunner/events.py b/httprunner/events.py index 34259967..b52928a2 100644 --- a/httprunner/events.py +++ b/httprunner/events.py @@ -1,3 +1,5 @@ +# encoding: utf-8 + class EventHook(object): """ Simple event class used to provide hooks for different types of events in HttpRunner. diff --git a/httprunner/exception.py b/httprunner/exception.py index f9c13951..4bcef4d8 100644 --- a/httprunner/exception.py +++ b/httprunner/exception.py @@ -1,4 +1,5 @@ -#coding: utf-8 +# encoding: utf-8 + import json try: diff --git a/httprunner/locusts.py b/httprunner/locusts.py index 7702c6c6..0f4be04e 100644 --- a/httprunner/locusts.py +++ b/httprunner/locusts.py @@ -1,3 +1,5 @@ +# encoding: utf-8 + import io import multiprocessing import os diff --git a/httprunner/logger.py b/httprunner/logger.py index b2457c9e..9ea0700d 100644 --- a/httprunner/logger.py +++ b/httprunner/logger.py @@ -1,3 +1,5 @@ +# encoding: utf-8 + import logging import sys diff --git a/httprunner/report.py b/httprunner/report.py index b28245a0..cadb1ba0 100644 --- a/httprunner/report.py +++ b/httprunner/report.py @@ -1,3 +1,5 @@ +# encoding: utf-8 + import io import os import platform diff --git a/httprunner/response.py b/httprunner/response.py index 86e13e73..94a92e7a 100644 --- a/httprunner/response.py +++ b/httprunner/response.py @@ -1,3 +1,5 @@ +# encoding: utf-8 + import re from httprunner import exception, logger, testcase, utils diff --git a/httprunner/runner.py b/httprunner/runner.py index 9b74fc51..28972cb6 100644 --- a/httprunner/runner.py +++ b/httprunner/runner.py @@ -1,3 +1,5 @@ +# encoding: utf-8 + from unittest.case import SkipTest from httprunner import exception, logger, response, testcase, utils diff --git a/httprunner/task.py b/httprunner/task.py index 4636355f..f559fa74 100644 --- a/httprunner/task.py +++ b/httprunner/task.py @@ -1,3 +1,5 @@ +# encoding: utf-8 + import copy import sys import unittest diff --git a/httprunner/testcase.py b/httprunner/testcase.py index a8e303bb..f3727924 100644 --- a/httprunner/testcase.py +++ b/httprunner/testcase.py @@ -1,3 +1,5 @@ +# encoding: utf-8 + import ast import csv import io diff --git a/httprunner/utils.py b/httprunner/utils.py index 6bb1a1f1..d5762c44 100644 --- a/httprunner/utils.py +++ b/httprunner/utils.py @@ -1,3 +1,5 @@ +# encoding: utf-8 + import copy import hashlib import hmac