Django 官方教程翻译项目- 53 - 本文档使用 书栈(BookStack.CN) 构建 测试在不同的层次中都存在。有些测试只关注某个很小的细节(某个模型的某个方法的返回值是否满 足预期?),而另一些测试可能检查对某个软件的一系列操作(某一用户输入序列是否造成了预期的 结果?)。其实这和我们在教程的 第二部分(zh)里做的并没有什么不同,我们使用 shell 来测试 某一方法的功能,或者运行某个应用并输入数据来检查它的行为。 测试不仅能发现错误,而且能预防错误 创建你的第一个 Django 项目, 第五部分 - 54 - 本文档使用 书栈(BookStack.CN) 构建 你也许遇到过这种情况:你编写了一个绝赞的软件,但是其他开发者看都不看它一眼,因为它缺少测 试。没有测试的代码不值得信任。 Django 最初开发者之一的 Jacob Kaplan-Moss 说过:“项目 规划时没有包含测试是不科学的。” 打包的解决方案目前有点混乱,因为有各种不同的工具。在本教程中,我们将使用 setuptools 建立我们的包。这是推荐的打包工具(与distribute分支合并后)。可是使用 pip 来安装和卸载它。你现在应该安装这两个软件包。如果需要帮助,你可以参考如何使用 pip 安装 Django。您可以用相同的方式安装 setuptools。 Python 的 打包 是指将你的应用制作成特定的格式,以便能被很方便地安装和使用。Django0 码力 | 103 页 | 1.86 MB | 1 年前3
 Django、Vue 和Element UI 前后端原理论述pStorm、Rider、RubyMine 和 WebStorm; 3)隐私和安全:优先考虑用户隐私,从不存储或复制代码,始终对数据和日志进行 加密。 除此之外呢?它还可以生成测试用例,保障软件开发人员的代码质量,提高开发团 队生产力和效率。 值得再次强调的是:它是一款免费工具。免费!免费! ·安装方法 上面已经说过,Bito AI 适用于 AppCode、GoLand、Intel MeterSphere 基本的安装过程及常规报错,但是一些环境原因,最后没 有安装成功,现将安装过程及注意事项进行整理,供参考!!! 系统要求: 1、8c 32G 2、windows 纯净版(没有其他系统软件) 安装过程 ·安装 WSL ·安装 Ubuntu ·Docker 安装与配置 ·下载安装包 Windows11 下载安装 MeterSphere 社区版本踩坑指南  作者:M&T. 随着科技日新月异的发展,人工智能正逐渐渗透到我们生活的各方各面,从智能语 音助手到自动驾驶汽车,从智能家居到人脸识别技术,AI 正以其卓越的智能和学习能力 引领着新时代的发展方向。在这个快速演进的时代中,软件测试领域也受到了不小的冲 击。虽然在当下,传统的软测技术仍然是绝对的主力,但是身为 IT 行业中的一员,近几 年 AI 的全新业务体验与其超强的算力所带来的震撼感受也应该远超其他行业。所以为了0 码力 | 61 页 | 6.84 MB | 1 年前3
 Django 5.1 Documentationto turn the documentation into HTML: $ cd path/to/django/docs $ make html You’ll need GNU Make [https://www.gnu.org/software/make/] installed for this. If you’re on Windows you can alternatively use with the error message that you encounter. Now we are ready to run the test suite. If you’re using GNU/Linux, macOS, or some other flavor of Unix, run: $ ./runtests.py Now sit back and relax. Django’s article [https://en.wikipedia.org/wiki/Internationalization_and_localization] or the GNU gettext documentation [https://www.gnu.org/software/gettext/manual/gettext.html#Concepts]. Warning Translation is controlled0 码力 | 3513 页 | 3.17 MB | 1 年前3
 Django 5.1.2 Documentationto turn the documentation into HTML: $ cd path/to/django/docs $ make html You’ll need GNU Make [https://www.gnu.org/software/make/] installed for this. If you’re on Windows you can alternatively use with the error message that you encounter. Now we are ready to run the test suite. If you’re using GNU/Linux, macOS, or some other flavor of Unix, run: $ ./runtests.py Now sit back and relax. Django’s article [https://en.wikipedia.org/wiki/Internationalization_and_localization] or the GNU gettext documentation [https://www.gnu.org/software/gettext/manual/gettext.html#Concepts]. Warning Translation is controlled0 码力 | 3519 页 | 3.17 MB | 1 年前3
 Django 5.0.x Documentationto turn the documentation into HTML: $ cd path/to/django/docs $ make html You’ll need GNU Make [https://www.gnu.org/software/make/] installed for this. If you’re on Windows you can alternatively use with the error message that you encounter. Now we are ready to run the test suite. If you’re using GNU/Linux, macOS, or some other flavor of Unix, run: $ ./runtests.py Now sit back and relax. Django’s article [https://en.wikipedia.org/wiki/Internationalization_and_localization] or the GNU gettext documentation [https://www.gnu.org/software/gettext/manual/gettext.html#Concepts]. Warning Translation is controlled0 码力 | 3407 页 | 3.21 MB | 1 年前3
 Django 1.11.x Documentationincluded Makefile to turn the documentation into HTML: $ cd path/to/django/docs $ make html You’ll need GNU Make installed for this. If you’re on Windows you can alternatively use the included batch file: with the error message that you encounter. Now we are ready to run the test suite. If you’re using GNU/Linux, macOS, or some other flavor of Unix, run: $ ./runtests.py Now sit back and relax. Django’s Once the translators have filled in the message file, it must be compiled. This process relies on the GNU gettext toolset. Once this is done, Django takes care of translating Web apps on the fly in each available0 码力 | 1878 页 | 6.40 MB | 1 年前3
 Django 1.10.x Documentationincluded Makefile to turn the documentation into HTML: $ cd path/to/django/docs $ make html You’ll need GNU Make installed for this. If you’re on Windows you can alternatively use the included batch file: with the error message that you encounter. Now we are ready to run the test suite. If you’re using GNU/Linux, Mac OS X or some other flavor of Unix, run: $ ./runtests.py Now sit back and relax. Django’s Once the translators have filled in the message file, it must be compiled. This process relies on the GNU gettext toolset. Once this is done, Django takes care of translating Web apps on the fly in each available0 码力 | 1817 页 | 6.19 MB | 1 年前3
 Django 1.11.x Documentationincluded Makefile to turn the documentation into HTML: $ cd path/to/django/docs $ make html You’ll need GNU Make installed for this. If you’re on Windows you can alternatively use the included batch file: with the error message that you encounter. Now we are ready to run the test suite. If you’re using GNU/Linux, macOS, or some other flavor of Unix, run: $ ./runtests.py Now sit back and relax. Django’s More details can be found in the W3C Web Internationalization FAQ, the Wikipedia article or the GNU gettext documentation. Warning Translation and formatting are controlled by USE_I18N and USE_L10N0 码力 | 2747 页 | 2.67 MB | 1 年前3
 Django 1.10.x Documentationincluded Makefile to turn the documentation into HTML: $ cd path/to/django/docs $ make html You’ll need GNU Make installed for this. If you’re on Windows you can alternatively use the included batch file: with the error message that you encounter. Now we are ready to run the test suite. If you’re using GNU/Linux, Mac OS X or some other flavor of Unix, run: $ ./runtests.py Now sit back and relax. Django’s More details can be found in the W3C Web Internationalization FAQ, the Wikipedia article or the GNU gettext documentation. Warning Translation and formatting are controlled by USE_I18N and USE_L10N0 码力 | 2538 页 | 2.59 MB | 1 年前3
 Django 1.8.x Documentationincluded Makefile to turn the documentation into HTML: $ cd path/to/django/docs $ make html You’ll need GNU Make installed for this. If you’re on Windows you can alternatively use the included batch file: We can run the test suite by simply cd-ing into the Django tests/ directory and, if you’re using GNU/Linux, Mac OS X or some other flavor of Unix, run: PYTHONPATH=.. python runtests.py --settings=test_sqlite Once the translators have filled in the message file, it must be compiled. This process relies on the GNU gettext toolset. Once this is done, Django takes care of translating Web apps on the fly in each available0 码力 | 1685 页 | 6.01 MB | 1 年前3
共 32 条
- 1
 - 2
 - 3
 - 4
 













