Metadata-Version: 1.1
Name: django-functest
Version: 0.1.3
Summary: Helpers for creating functional tests in Django, with a unified API for WebTest and Selenium tests.
Home-page: https://github.com/django-functest/django-functest
Author: Luke Plant
Author-email: L.Plant.98@cantab.net
License: BSD
Description: ===============
        django-functest
        ===============
        
        .. image:: https://travis-ci.org/django-functest/django-functest.png?branch=master
           :target: https://travis-ci.org/django-functest/django-functest
        
        .. image:: https://coveralls.io/repos/django-functest/django-functest/badge.svg?branch=master&service=github
           :target: https://coveralls.io/github/django-functest/django-functest?branch=master
        
        .. image:: https://readthedocs.org/projects/pip/badge/?version=latest
           :target: https://django-functest.readthedocs.org/en/latest/
        
        
        Helpers for creating high-level functional tests in Django, with a unified API
        for WebTest and Selenium tests.
        
        Documentation
        -------------
        
        The full documentation is at https://django-functest.readthedocs.org.
        
        Installation
        ------------
        
        ::
        
           pip install django-functest
        
        Features
        --------
        
        * A simplified API for writing functional tests in Django (tests that check the
          behaviour of entire views, or sets of views, e.g. a checkout process).
        
        * A unified API that abstracts over both `WebTest
          <http://webtest.pythonpaste.org/en/latest/>`_ and `Selenium
          <https://pypi.python.org/pypi/selenium>`_ - write two tests at once!
        
        * Many of the gotchas and difficulties of using WebTest and Selenium ironed out
          for you.
        
        * Well tested - as well as its own test suite, which is run against Firefox,
          Chrome, and PhantomJS, it is also used by `Wolf & Badger
          <https://www.wolfandbadger.com/>`_ for tests covering many business critical
          functionalities.
        
        Typical usage
        -------------
        
        In your tests.py::
        
            from django.test import LiveServerTestCase, TestCase
            from django_functest import FuncWebTestMixin, FuncSeleniumMixin
        
            class ContactTestBase(object):
        
                def test_contact_form(self):
                    self.get_url('contact_form')
                    self.fill({'#id_name': 'Joe',
                               '#id_message': 'Hello'})
                    self.submit('input[type=submit]')
                    self.assertTextPresent("Thanks for your message")
        
             class ContactWebTest(FuncWebTestMixin, TestCase):
                 pass
        
             class ContactSeleniumTest(FuncSeleniumMixin, LiveServerTestCase):
                 pass
        
        In this way, you can write a single test with a high-level API, and run it in
        two way - using a fast, WSGI-based method with emulates typical HTTP usage of a
        browser, and using a full browser that actually executes Javascript (if present)
        etc.
        
        Under the hood, the WSGI-based method uses and builds upon `WebTest
        <http://webtest.pythonpaste.org/en/latest/>`_ and `django-webtest
        <https://pypi.python.org/pypi/django-webtest>`_.
        
        django-functest provides its functionality as mixins, so that you can have your
        own base class for tests.
        
        
        Running Tests
        --------------
        
        To run the tests::
        
          source <YOURVIRTUALENV>/bin/activate
          (myenv) $ ./setup.py develop
          (myenv) $ ./runtests.py
        
        Or, to run on all environments::
        
          pip install tox
          tox
        
        
        Credits
        -------
        
        This library was built by developers at `Wolf & Badger
        <https://www.wolfandbadger.com/>`_, released with the kind permission of that
        company.
        
        Tools used in rendering this package:
        
        *  Cookiecutter_
        *  `cookiecutter-pypackage`_
        
        .. _Cookiecutter: https://github.com/audreyr/cookiecutter
        .. _`cookiecutter-pypackage`: https://github.com/pydanny/cookiecutter-djangopackage
        
        
        
        
        History
        -------
        
        0.1.3
        +++++
        
        * Support for filling radio buttons
        * More convenient support for quotes and apostrophes (" ') in text assertion methods.
        
        0.1.2
        +++++
        
        * Fixed wheel building - again!
        
        0.1.1
        +++++
        
        * Fixed packaging bug that caused wheels to fail on Python 3.
        
        0.1.0
        +++++
        
        * First release on PyPI.
        
Keywords: django-functest
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.7
Classifier: Framework :: Django :: 1.8
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
