django-webtest:django-webtest提供了Ian Bicking的WebTest(http

时间:2021-05-14 10:53:42
【文件属性】:
文件名称:django-webtest:django-webtest提供了Ian Bicking的WebTest(http
文件大小:32KB
文件格式:ZIP
更新时间:2021-05-14 10:53:42
Python django-webtest django-webtest是用于将Ian Bicking的WebTest( )与Django的测试框架即时集成的应用程序。 安装 $ pip install django-webtest 用法 from django_webtest import WebTest class MyTestCase ( WebTest ): # optional: we want some initial data to be able to login fixtures = [ 'users' , 'blog_posts' ] # optional: default extra_environ for this TestCase extra_environ = { 'HTTP_ACCEPT_LANGUAGE' : 'ru' }
【文件预览】:
django-webtest-master
----MANIFEST.in(132B)
----.travis.yml(2KB)
----README.rst(7KB)
----CHANGES.rst(8KB)
----tox.ini(832B)
----.hgtags(934B)
----setup.cfg(26B)
----django_webtest()
--------backends.py(1KB)
--------middleware.py(3KB)
--------compat.py(879B)
--------__init__.py(14KB)
--------rest_framework_auth.py(492B)
--------response.py(2KB)
--------pytest_plugin.py(1KB)
----setup.py(2KB)
----.gitignore(70B)
----django_webtest_tests()
--------test_pytest.py(279B)
--------templates()
--------testapp_tests()
--------tox2travis.py(1KB)
--------__init__.py(0B)
--------runtests.py(343B)
--------settings.py(3KB)
--------manage.py(546B)
--------urls.py(1KB)
----AUTHORS.txt(591B)
----LICENSE.txt(1KB)
----.hgignore(284B)
----.vscode()
--------settings.json(53B)

网友评论