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.072.592 Times

unitstorm 0.1.1

Company: Vsevolod Balashov
Date Added: September 19, 2013  |  Visits: 345

unitstorm

Report Broken Link
Printer Friendly Version


Product Homepage
Download (39 downloads)



Storm is a fast, small and powerful object-relational mapper. Try it to use in db-aware applications.<br /><br />Effective unit-testing DB-models needed:<br /><br /> * easy access to testing-DB inside testcases<br /> * setting up testing-DB before each test (and tear down after)<br /><br />To help this unitstorm provides class ModelTestCase, that can be used both in unittest and nosetest testing frameworks.<br />Simple example<br /><br />from unitstorm import ModelTestCase<br />from os import path<br /><br />import models as model # models define somewhere else<br /><br />class TestMyModel(ModelTestCase):<br /> dburi = 'postgres://test:test@localhost/test'<br /><br /> fixtures = path.join(path.dirname(__file__), 'fixtures')<br /><br /> fixture_setup = 'create.sql', 'filldata.sql'<br /> fixture_teardown = 'drop.sql'<br /><br /> sql_setup = 'INSERT INTO my_model (id, name) VALUES (1, "foo");',\<br /> 'INSERT INTO my_model (id, name) VALUES (2, "bar");'<br /> sql_teardown = 'DELETE FROM my_model WHERE id = 1;'<br /><br /> def test_stub(self):<br /> assert self.store.get(model.MyModel, 1).name == "foo"<br /><br />TODO more description (look sources)<br /><br />dburi<br /><br />db<br /><br />store<br /><br />fixtures<br /><br />fixture_setup<br /><br />fixture_teardown<br /><br />sql_setup<br /><br />sql_teardown<br /><br />Execution order: fixture_setup, sql_setup, test, sql_teardown, fixture_teardown<br /><br /><br />#md5=b35ee98b654ee57b50bad277b91b1360

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Createsql Dburi Dropsql Filldatasql Fixture Setup Fixture Teardown Fixtures Import Insert Model Models Pathjoinpathdirname File Postgrestesttestlocalhosttest Sql Setup Sql Teardown Testingdb Testmymodelmodeltestcase Unitstorm Values
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


UNITSTORM RELATED
File Managers  -  F-Sync 3.0
Multitask folder synchronization. Synchronize files recursively from two different folders, setup multiple tasks that are executed at regular intervals of your choosing, easy to use interface, import/export tasks to xml file.
280.6 KB  
Network & Internet  -  django-fixture-magic 0.0.2
The django-fixture-magic package contains a few extra management tools to handle fixtures. Installation: You can get fixture-magic from pypi with: pip install django-fixture-magic The development version...
10.24 KB  
Libraries  -  Domingo 1.4
Domingo is a simple, consistent, object-oriented easy-to-use interface to the Lotus Notes/Domino Java-API. Installation: To install Domingo on your Notes Client or Domino server, please download a binary distribution, extract the file...
983.04 KB  
Audio Tools  -  SpiralSynthModular 0.2.2a
You can use it in a fairly straight forward way to make tracks with, or get very experimental. Audio or control data can be freely passed between the plugins. Data can also be fed back on itself for creating chaotic effects. SSM supports LADSPA...
358.4 KB  
Network & Internet  -  PhpBibliography 0.4
PhpBibliography allows you to publish your bibliography online (and to edit it via web). PhpBibliography is implemented in Php and uses MySql. These instructions assume you already have a working web server/php/MySql system. 1. Create a...
41.98 KB  
Accounting Tools  -  Equation Calculator 1.0
Welcome to Equation Calculator. The Equation Calculator allows you setup equations, define and set Variable Values, and calculate an equation result. You can create a record with variables and values or a each equation. Equations and variable...
10.49 MB  
Database Tools  -  DBMan SQL for Scripts 2.1.0
It provides a web front end to add, modify, delete or search on any type of database. You can use the easy setup wizard to create your own database from scratch, or auto create a configuration file based on an existing table! DBMan SQL also...
10 KB  
Modules  -  CCKase tracker 6.x-1.x-de
The development of this module will stop in favor of CCK comments module, as it has a similar functionality, with no dependencies.The difference in CCKasetracker and CCK comments, is that CCKasetracker doesn't use the node revisions table, however...
10 KB  
Network & Internet  -  django-email-extras 0.1.8
django-email-extras is a Django reusable app providing the ability to send PGP encrypted and multipart emails using the Django templating system. These features can be used together or separately. When configured to send PGP encrypted email, the...
10.24 KB  
Programming  -  GeoFormAlchemy 0.1
GeoFormAlchemy is a FormAlchemy extension that makes it possible to generate forms for model classes that use the geometry types of GeoAlchemy. Installation Installing using easy_install: easy_install...
10.24 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
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  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB