
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
.. 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
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.