10 2020 档案

摘要:# _*_coding:utf-8_*_ from rest_framework.response import Response class ApiResponse(Response): msg_code = 1000 code = 200 msg = "" def __init__(self, 阅读全文
posted @ 2020-10-23 10:11 拖延症的理想主义者 阅读(329) 评论(0) 推荐(0)
摘要:1、安装django-mdeditor模块 pip install django-mdeditor 2、注册mdeditor到APPS中 INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib 阅读全文
posted @ 2020-10-22 00:00 拖延症的理想主义者 阅读(425) 评论(0) 推荐(0)
摘要:#!/usr/local/bin/python3 # -*- coding: utf-8 -*- __author__ = "Carp-Li" __date__ = "2020/10/18" from enum import Enum from collections import namedtup 阅读全文
posted @ 2020-10-21 22:09 拖延症的理想主义者 阅读(203) 评论(0) 推荐(0)
摘要:1、安装django-cors-headers模块 pip install django-cors-headers 2、插入Django的APP配置中 # 修改settings.py中的INSTALLED_APPS配置 INSTALLED_APPS = [ 'django.contrib.admin 阅读全文
posted @ 2020-10-21 20:47 拖延症的理想主义者 阅读(286) 评论(0) 推荐(0)
摘要:使用pytest.ini添加自定义用例标识: [pytest] # 1、使用没有注册过的标记抛出错误 addopts = --strict-markers # 2、自定义标记 markers = smoking: 自定义冒烟用例的标记;执行非冒烟用例 pytest -m "not smoking" 阅读全文
posted @ 2020-10-10 22:19 拖延症的理想主义者 阅读(246) 评论(0) 推荐(0)
摘要:#!/usr/local/bin/python3 # -*- coding: utf-8 -*- import pytest __author__ = "Carp-Li" __date__ = "2020/10/10" class TestClassCase: @pytest.mark.parame 阅读全文
posted @ 2020-10-10 22:15 拖延症的理想主义者 阅读(114) 评论(0) 推荐(0)