# -*- coding: utf-8 -*-
from locust import task
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(__file__)))

import config
from behavior.behavior import UserBehavior
from common.util import is_ok
from behavior.client import Client

# 类命名规则
# 必须和文件名同名，并且首字母要大写
@Client.action
class Findred(UserBehavior):

    @task(10)
    def find(self):
        r = self._post(config.Api.find_redbag,"")


# -*- coding: utf-8 -*-
from locust import task
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(__file__)))

import config
from behavior.behavior import UserBehavior
from common.util import is_ok
from behavior.client import Client

# 类命名规则
# 必须和文件名同名，并且首字母要大写
@Client.action
class Findred(UserBehavior):

    @task(10)
    def find(self):
        r = self._post(config.Api.find_redbag,"")


# -*- coding: utf-8 -*- # 类命名规则 # 必须和文件名同名，并且首字母要大写