Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.054.958 Times

django-webtest 1.4.4

Company: Mikhail Korobov
Date Added: October 10, 2013  |  Visits: 1.003

django-webtest

Report Broken Link
Printer Friendly Version


Product Homepage
Download (43 downloads)

django-webtest is an almost trivial application for instant integration of Ian Bicking's WebTest (http://pythonpaste.org/webtest/) with django's testing framework.<br /><br />Installation<br /><br />pip install webtest<br />pip install django-webtest<br /><br />or<br /><br />easy_install webtest<br />easy_install django-webtest<br /><br />or grab latest versions from bitbucket (http://bitbucket.org/ianb/webtest, http://bitbucket.org/kmike/django-webtest)<br /><br />Usage<br /><br />django-webtest provides django.test.TestCase subclass (WebTest) that creates webtest.TestApp around django wsgi interface and make it available in tests as self.app.<br /><br />It also features optional user argument for self.app.get and self.app.post methods to help making authorized requests. This argument should be django.contrib.auth.models.User's username for user who is supposed to be logged in.<br /><br />All of these features can be easily set up manually (thanks to WebTest architecture) and they are even not neccessary for using WebTest with django but it is nice to have some sort of integration instantly.<br /><br />from django_webtest import WebTest<br /><br />class MyTestCase(WebTest):<br /><br /> # we want some initial data to be able to login<br /> fixtures = ['users', 'blog_posts']<br /><br /> def testBlog(self):<br /> # pretend to be logged in as user `kmike` and go to the index page<br /> index = self.app.get('/', user='kmike')<br /><br /> # All the webtest API is available. For example, we click<br /> # on a Blog link, check that it<br /> # works (result page doesn't raise exceptions and returns 200 http<br /> # code) and test if result page have 'My Article' text in<br /> # it's body.<br /> assert 'My Article' in index.click('Blog')<br /><br />See http://pythonpaste.org/webtest/ for API help. It can follow links, submit forms, parse html, xml and json responses with different parsing libraries, upload files and more.<br /><br />Why?<br /><br />While django.test.client.Client is fine for it's purposes, it is not well-suited for functional or integration testing. From django's test client docstring:<br /><br /> This is not intended as a replacement for Twill/Selenium or the like - it is here to allow testing against the contexts and templates produced by a view, rather than the HTML rendered to the end-user.<br /><br />WebTest plays on the same field as twill. WebTest has nice API, is fast, small, talk to django application via WSGI instead of HTTP and is an easy way to write functional/integration/acceptance tests.<br /><br />Twill is also a great tool and it also can be easily integrated with django (see django-test-utils package) and I also enjoy it much. But I prefer WebTest over twill because twill is old (last release is in 2007), communicate via HTTP instead of WSGI (though there is workaround for that), lacks support for non-latin text (not to mention unicode) and have a much larger codebase to hack on. Twill however understands HTML better and is more mature so consider it (and django-test-utils package) if WebTest doesn't fit for some reason.<br /><br />#md5=f08721422f77edb35a466813437af968

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: 039my Argument Article Django Djangotestutils Doesn Easily Features Index Install Integration It039s Logged Package Result Testing Twill Webtest
Users rating: 0/10

License: Freeware Size: 10.24 KB
DJANGO-WEBTEST RELATED
Web Authoring  -  Automated Article Submitter 2.0
Download This Article Submission Software and Easily Blast Your Articles To Multiple Directories In Just Seconds! This Cool Software delivers your article to the top article directories in less then a minute. Imagine the amount of exposure you are...
1.63 MB  
Programming  -  django-vinaigrette 0.1.1
Vinaigrette translates Django model data -- stored in the database -- using GNU gettext and Django's standard internationalization features. Installing Add 'vinaigrette' to INSTALLED_APPS in your settings. Then, tell...
10.24 KB  
Network & Internet  -  django_evolution 0.6.7
When you run ./manage.py syncdb, Django will look for any new models that have been defined, and add a database table to represent those new models. However, if you make a change to an existing model, ./manage.py syncdb will not make any changes...
61.44 KB  
Graphs and Charts  -  OpenGL 3D graphics in MATLAB using jzy3d 1.0
A demo of some features of the jzy3d 3d graphics package from http://www.jzy3d.org/This PDF describes code for displaying jzy3d OpenGL-based 3D graphics in MATLAB. Code to run these demos is available as a Java jar file...
2.54 MB  
HTML Utilities  -  Text2Html 2.00
Text2Html is a freeware plain text to HTML converter. This application is ideal for webmasters who must quickly convert many plain text files into HTML format. Text2Html features Windows Explorer integration. This allows the selection of any...
1.15 MB  
Instant Messagers  -  Inbit Messenger 1.4
Inbit Messenger is secure instant messaging software that allows your enterprise to reach new levels of collaboration with innovative features beyond the standard enterprise IM package. With Inbit Messenger, your organization can share files,...
6.92 MB  
Java Based Databases  -  GuiGenie 1.0.0
GuiGenie is a new and free Gui Builder for Java (and written in Java) featuring an intuitive interface that allows you to quickly and easily build GUIs using the Java swing package.
276 KB  
Network & Internet  -  AOL for Mac OS X 10.3
About AOL for Mac OS X Brings together enhancements to AOL s popular e-mail and instant messaging features, such as a counter on the Mac OS X dock that displays the number of new messages; the new AOL Search; the addition of new short-cut keys, as...
24.3 MB  
Modules  -  No-ah extendable content module 1.0
There are a lot of features in this module, and a lot of testing still to do I am sure. Here is a short list of included functionality: - Product catalogue - Shopping cart - ImageMagick upload/resize - extendable administration interface - create...
 
Network & Internet  -  armstrong.apps.images 1.1.1
This app provides an Image model and Django admin image browse functionality for CKEditor integration. Warning This is development level software. Please do not use unless you are familiar with what that means and are...
61.44 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, HOME & LEISURE
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Home & Leisure  -  Hadrian 0.1.7
Hadrian - A collection of plugable Django apps and utilities that I use in my projects.
143.36 KB  
Home & Leisure  -  StarDict for Fedora Linux 3.0.2
Stardict is a free open source off-line dictionary program that allows you to use all those free dictionaries(at the moment more than 100 dictionaries are available). Glob-style pattern matching You can input strings containing '*'...
1.64 MB  
Home & Leisure  -  django-popularity for Linux 0.2
django-popularity is a Django app that makes it very easy to track the amount of views for objects, and generate (generic) popularity listings based upon that. Right now it has a measure for view counts, relative view counts, novelty...
20.48 KB  
Home & Leisure  -  django-easy-maps 0.7.2
This app makes it easy to display a map for given address in django templates. No API keys, manual geocoding, html/js copy-pasting or django model changes is needed. Installation pip install geopy pip install...
10.24 KB  
Home & Leisure  -  The Huffington Post 0.7.9
The Huffington Post is a Google Chrome extension that will get up to-the-minute reports, blogs and analysis with quick-view articles from all sections of the Huffington Post. You can share to your social networks, comment, and more!
10.24 KB