会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
mayueyue
博客园
首页
新随笔
联系
订阅
管理
2023年9月21日
密码加密
摘要: # -*- coding: utf-8 -*-"""@Time : 9/13/23 3:37 PM@Author : """import hashlib"""def hash_password(password): # 创建md5对象 hasher = hashlib.md5() # 更新md5对象
阅读全文
posted @ 2023-09-21 15:12 马越月
阅读(39)
评论(0)
推荐(0)
2023年8月15日
发送测试报告附件
摘要: import smtplibfrom email.mime.application import MIMEApplicationfrom email.mime.multipart import MIMEMultipartfrom email.mime.text import MIMETextclas
阅读全文
posted @ 2023-08-15 14:14 马越月
阅读(25)
评论(2)
推荐(1)
2023年7月31日
yaml格式
摘要: - url: http://v.juhe.cn/jztk/query method: post code_massage: ok data: key: e6966b84b09205fe863980c562854acd subject: 1 model: c1- url: http://v.juhe.
阅读全文
posted @ 2023-07-31 17:12 马越月
阅读(12)
评论(0)
推荐(0)
2023年7月28日
main方法
摘要: import unittestfrom BeautifulReport import BeautifulReportfrom testcases.query import testdemodef allTests(): suite=unittest.TestSuite() loder=unittes
阅读全文
posted @ 2023-07-28 15:52 马越月
阅读(13)
评论(0)
推荐(0)
用例
摘要: from projecttest.demo import Basecasefrom ddt import ddt,data,unpack,file_dataimport unittestfrom common.mylogger import logger@ddtclass testdemo(Base
阅读全文
posted @ 2023-07-28 15:51 马越月
阅读(15)
评论(0)
推荐(0)
json格式
摘要: { "positive_integer_range": { "url": "http://apis.juhe.cn/simpleWeather/query", "method": "get", "code_massage": "查询成功", "params": { "city":"苏州", "key
阅读全文
posted @ 2023-07-28 15:49 马越月
阅读(43)
评论(0)
推荐(0)
封装请求
摘要: import unittest,requestsimport yamlfrom common.mylogger import loggerclass Basecase(unittest.TestCase): def request_token(self): pass def request(self
阅读全文
posted @ 2023-07-28 15:47 马越月
阅读(9)
评论(0)
推荐(0)
2023年7月25日
session有效期内登录
摘要: from django.utils.deprecation import MiddlewareMixinfrom django.shortcuts import render,redirectclass MyMiddleware(MiddlewareMixin): def process_reque
阅读全文
posted @ 2023-07-25 11:37 马越月
阅读(20)
评论(0)
推荐(0)
修改
摘要: <!DOCTYPE html><html><head><meta charset="utf-8"><title>图书馆</title></head><style>input[type=text], select { width: 100%; padding: 12px 20px; margin: 8
阅读全文
posted @ 2023-07-25 11:36 马越月
阅读(62)
评论(0)
推荐(0)
搜索
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style>body{background-image:url('/static/img/21.jpeg');} .button {
阅读全文
posted @ 2023-07-25 11:35 马越月
阅读(22)
评论(0)
推荐(0)
下一页
公告