Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
.. contents:
Storm <https://storm.canonical.com>
_ is a fast, small and powerful object-relational mapper.
Try it to use in db-aware applications.
Effective unit-testing DB-models needed:
To help this unitstorm provides class ModelTestCase,
that can be used both in unittest <http://docs.python.org/lib/module-unittest.html>
_
and nosetest <http://somethingaboutorange.com/mrl/projects/nose/>
_ testing frameworks.
::
from unitstorm import ModelTestCase
from os import path
import models as model # models define somewhere else
class TestMyModel(ModelTestCase):
dburi = 'postgres://test:test@localhost/test'
fixtures = path.join(path.dirname(__file__), 'fixtures')
fixture_setup = 'create.sql', 'filldata.sql'
fixture_teardown = 'drop.sql'
sql_setup = 'INSERT INTO my_model (id, name) VALUES (1, "foo");',\
'INSERT INTO my_model (id, name) VALUES (2, "bar");'
sql_teardown = 'DELETE FROM my_model WHERE id = 1;'
def test_stub(self):
assert self.store.get(model.MyModel, 1).name == "foo"
TODO more description (look sources)
dburi
db
store
fixtures
fixture_setup
fixture_teardown
sql_setup
sql_teardown
Execution order: fixture_setup, sql_setup, test, sql_teardown, fixture_teardown
unitstorm distributed under terms of GNU LGPL v.2.1 <http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt>
.
Copyright 2007 - present Vsevolod Balashov <http://vsevolod.balashov.name/>
.
Source code of unitstorm <http://bitbucket.org/sevkin/unitstorm/>
_.
FAQs
Unit testing microframework for Storm ORM models
We found that unitstorm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.