https://github.com/ravendb/ravendb-python-testdriver
https://github.com/ravendb/ravendb-python-testdriver
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ravendb/ravendb-python-testdriver
- Owner: ravendb
- License: other
- Created: 2024-02-09T14:40:10.000Z (over 2 years ago)
- Default Branch: v6.2
- Last Pushed: 2025-03-21T14:58:59.000Z (over 1 year ago)
- Last Synced: 2025-04-09T16:15:25.841Z (over 1 year ago)
- Language: Python
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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:
```python
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