Skip to content

ravendb/ravendb-python-testdriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages