2 Star 0 Fork 0

colornix / anti-piracy-tool-backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

README

企业固定资产管理系统 后端仓库,2020 THU-CST 软件工程优秀大作业.

前端仓库

Structure

  • app Core settings for Django.
    • user 用户模块
    • asset 资产模块
    • department 部门模块
    • issue 事项模块
  • logs 生成日志
  • config local settings
  • pytest.ini Configuration for pytest.
  • requirements.txt Package manager with pip.
  • requirements_dev.txt Package manager with pip, including extra tools for development.
  • sonar-project.properties sonarQube 配置
  • .gitlab-ci.yml gitlab CI 配置
  • Dockerfile Docker 环境配置

Development manual

本地检查是否能通过测试

pylint --load-plugins=pylint_django app user asset department issue
coverage run -m pytest --junit-xml=xunit-reports/xunit-result.xml

本地检查测试覆盖率

在根目录下创建.coveragerc 文件:

[run]
source = app,user,asset,department,issue
[report]
show_missing = True

命令行执行:

coverage run manage.py test
coverage report
MIT License Copyright (c) 2023 colornix Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/colornix/anti-piracy-tool-backend.git
git@gitee.com:colornix/anti-piracy-tool-backend.git
colornix
anti-piracy-tool-backend
anti-piracy-tool-backend
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891