Kumar McMillan avatar Kumar McMillan committed cf3e59f

Added mention in the docs about support for Storm ORM. Bumped version for this new feature.

Comments (0)

Files changed (5)

docs/source/api/fixture.loadable.storm_loadable.rst

+
+-----------------------------------
+fixture.loadable.storm_loadable
+-----------------------------------
+
+.. automodule:: fixture.loadable.storm_loadable
+
+.. autoclass:: fixture.loadable.storm_loadable.StormFixture
+   :show-inheritance:
+   :members:
+
+.. autoclass:: fixture.loadable.storm_loadable.StormMedium
+   :show-inheritance:
+   :members: 

docs/source/index.rst

 Examples of Usage
 -----------------
 
-Fixture can be used to load :class:`DataSet <fixture.dataset.DataSet>` objects into `SQLAlchemy`_, `SQLObject`_, `Google Datastore`_, or `Django ORM`_ backends (:ref:`more on loading data <using-loadable-fixture>`).  For a complete end-to-end example see :ref:`Using Fixture To Test A Pylons + SQLAlchemy App <using-fixture-with-pylons>`, :ref:`Using Fixture To Test A Google App Engine Site <using-fixture-with-appengine>` or :ref:`using-fixture-with-django`.  This should help you understand how to fit ``fixture`` into a finished app.
+Fixture can be used to load :class:`DataSet <fixture.dataset.DataSet>` objects into the following backends: 
+
+- `SQLAlchemy`_
+- `SQLObject`_
+- `Google Datastore`_
+- `Django ORM`_
+- `Storm`_
+
+You can read the section on :ref:`loading data <using-loadable-fixture>` for general information.  For a complete end-to-end example see :ref:`Using Fixture To Test A Pylons + SQLAlchemy App <using-fixture-with-pylons>`, :ref:`Using Fixture To Test A Google App Engine Site <using-fixture-with-appengine>` or :ref:`using-fixture-with-django`.  This should help you understand how to fit ``fixture`` into a finished app.
 
 .. _SQLAlchemy: http://www.sqlalchemy.org/
 .. _SQLObject: http://www.sqlobject.org/
 .. _Google Datastore: http://code.google.com/appengine/docs/datastore/
 .. _Django ORM: http://docs.djangoproject.com/
+.. _Storm: http://storm.canonical.com/
 
 Now, on to the knitty gritty details ...
 
 Changelog
 ---------
 
+- 1.4
+  
+  - `Storm ORM <https://storm.canonical.com/>`_ support added by Bozo Dragojevic
+
 - 1.3
   
   - Django support added by `Ben Ford <http://bitbucket.org/boothead/>`_.  See :ref:`using-fixture-with-django`

docs/source/using-loadable-fixture.rst

 
     >>> from fixture import DjangoFixture
     >>> from fixture.style import NamedDataStyle
-    >>> dbfixture = DjangoFixture()
+    >>> dbfixture = DjangoFixture(env=globals(), style=NamedDataStyle())
     
 By default :class:`~DjangoFixture` uses a special class for it's env (:class:`~DjangoEnv`). If you don't pass in an env keyword argument then :class:`~DjangoFixture` will use this class to resolve fixtures to models. You can of course still pass an env and style if you want to change this, see :ref:`using-loadable-fixture-style` for more details
 
 For more info see :mod:`~fixture.loadable.django_loadable` especially :class:`~DjangoFixture` and the more extended guide: :ref:`using-fixture-with-django`
 
+Storm
++++++
+
+Data can be loaded using `Storm ORM <http://storm.canonical.com/>`_ objects.
+
+.. currentmodule:: fixture.loadable.storm_loadable
+
+.. doctest:: loading
+
+    >>> from fixture import StormFixture
+    >>> from fixture.style import NamedDataStyle
+    >>> dbfixture = StormFixture(env=globals(), style=NamedDataStyle())
+
+
 An Example of Loading Data Using SQLAlchemy
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 - :mod:`fixture.loadable`
 - :mod:`fixture.loadable.sqlalchemy_loadable`
 - :mod:`fixture.loadable.sqlobject_loadable`
+- :mod:`fixture.loadable.google_datastore_loadable`
+- :mod:`fixture.loadable.storm_loadable`

fixture/__init__.py

 
 """
 
-__version__ = "1.3.1"
+__version__ = "1.4"
 
 import logging
 import sys

fixture/loadable/storm_loadable.py

 
+"""Components for loading and unloading data using `Storm`_.
+
+See :ref:`Using LoadableFixture<using-loadable-fixture>` for examples.
+
+.. _Storm: https://storm.canonical.com/
+
+"""
 
 from fixture.loadable import DBLoadableFixture
 from fixture.util import _mklog
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.