Skip to main content

RavenDB package for writing integration tests against RavenDB server

Project description

RavenDB Test Driver

ravendb-test-driver is a package for writing integration tests against RavenDB server.

Setup

Install from PyPi:

pip install ravendb-test-driver

Usage

Inherit RavenTestDriver to your test class or create an instance within your class.

Unittest example:

from ravendb_test_driver import RavenTestDriver
from unittest import TestCase

class TestBasic(TestCase):
    def setUp(self):
        super().setUp()
        self.test_driver = RavenTestDriver()

    def test_1(self):
        with self.test_driver.get_document_store() as store:
            with store.open_session() as session:
                person = {"Name": "John"}
                session.store(person, "people1")
                session.save_changes()

PyPi

https://pypi.org/project/ravendb-test-driver/

Github

https://github.com/ravendb/ravendb-python-testdriver

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ravendb-test-driver-6.0.0.post5.tar.gz (10.3 kB view hashes)

Uploaded Source

Built Distribution

ravendb_test_driver-6.0.0.post5-py3-none-any.whl (11.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page