semvec/pypi-packages huggingface dataset:
nosedbreport 0.3.0
Nose plugin for recording test results to a database
License: MIT

.. _git repository: http://github.com/alisaifee/nosedbreport
.. _read the docs: http://nosedbreport.readthedocs.org/en/latest/
.. |travis-ci| image:: https://secure.travis-ci.org/alisaifee/nosedbreport.png 
    :target: https://travis-ci.org/#!/alisaifee/nosedbreport 

Introduction
============
nosedbreport exposes a single plugin that can front various backend databases to store
the result of a nose test execution. Having the results of your tests, whether they are part
of a continuous integration system or not, allows you to ask interesting questions about
your project such as

* What were the test suites that ran in the last five minutes
* What is the average time to run test case 'x' 
* What is the standard time to failure for test suite 'y'
* and so on...
 
These questions also allow you to build reporting, and monitoring tools based on automated
functional tests that you may be running against your development, staging or production
systems, such as heartbeat or availability pages.

Installation |travis-ci|
========================
* with easy_install ::
   
    sudo easy_install nosedbreport

* with pip ::
    
    sudo pip install nosedbreport

* from source (`git repository`_)::

    hg clone http://github.com/alisaifee/nosedbreport
    cd nosedbreport
    python setup.py build
    sudo python setup.py install

Usage
=====

* The most basic use case is to report the results of a test run into a mysql database, which can be achieved by adding the following options to your nose execution::

	nosetests --dbreport-dbtype=mysql --dbreport-host=your.mysql.com\
	 --dbreport-username=ali --dbreport-password=some-pass --dbreport-db=nosereport
 
* To create the appropriate schema in your mysql database::

    nosetests --dbreport-dbtype=mysql --dbreport-host=your.mysql.com\
     --dbreport-username=root  --dbreport-password=your-root-pass\
     --dbreport-db=nosereport --dbreport-create-schema

* For detailed usage refer to `read the docs`_
django-shareable 0.2.7
Templatetags for 'tweet this' and 'share on facebook'
License: MIT

Django Shareable
======================================

Provides tempatetags for 'Tweet This' and 'Share this on Facebook'.

A fork of django-social-share by Flavio Curella.

Installation
-------------

::

    $ pip install django-shareable

Add the app to ``INSTALLED_APPS``::

  INSTALLED_APPS += ['django_shareable']

It's recommended to add ``django.core.context_processors.request`` to your `` TEMPLATE_CONTEXT_PROCESSORS`` list. This way the templatetags will use the correct scheme and hostname.

If ``django.core.context_processors.request`` is not present, it will simply concatenate the current site's domain (from ``django.contrib.sites``) and the object's relative URL together.

Usage
-----
::

  {% post_to_facebook <object_or_url> <link_text> %}

  {% post_to_twitter <text_to_post> <object_or_url> <link_text> %}

``<text_to_post>`` may contain any valid Django Template code. Note that Facebook does not support this anymore.

``<object_or_url>`` is optional. If you pass a django model instance, it will use its ``get_absolute_url`` method. Additionally, if you have ``django_bitly`` installed, it will use its shortUrl on Twitter.

``<link_text>`` is also optional. It defines the text used for the ``a`` element. Defaults to 'Post to Facebook' and 'Post to Twitter'

::

  {% post_to_twitter_url <text_to_post> <object_or_url> %}

Will add a ``tweet_url`` variable to the context, containing the URL for the Twitter sharer popup.

::

  {% post_to_facebook_url <object_or_url> %}

Will add a ``facebook_url`` variable to the context, containing the URL for the Facebook sharer popup.

Example::

  {% load social_share %}
  
  {% post_to_facebook object_or_url "Post to Facebook!" %}
  {% post_to_twitter "New Song: {{object.title}}. Check it out!" object_or_url "Post to Twitter" %}

Templates are in ``django_shareable/templatetags/post_to_twitter.html`` and ``django_shareable/templatetags/post_to_facebook.html``. You can override them to suit your mileage.