You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your tool hard to debug? Is it easier if you check it at the DB level?
4
4
5
-
This module is for you! **dbtests** is a Python tool for conducting database tests. It is a unittest wrapper focussed on making DB integrity tests.
5
+
This module is for you! **unit-db-test** is a Python tool for conducting database tests. It is a unittest wrapper focussed on making DB integrity tests.
6
6
As it is an extension over the `unittest.TestCase` it is easy to configure and easy to integrate with GitHub actions.
7
7
8
8
@@ -18,7 +18,7 @@ As it is an extension over the `unittest.TestCase` it is easy to configure and e
18
18
You can install **dbtests** using pip:
19
19
20
20
```bash
21
-
pip install dbtests
21
+
pip install unit-db-test
22
22
```
23
23
24
24
## Usage
@@ -40,7 +40,7 @@ my-tool/
40
40
# test_script_1.py
41
41
# Dependencies
42
42
import unittest
43
-
fromdbtest.unittestimport DBintegrityTest
43
+
fromunit-db-test.testcaseimport DBintegrityTest
44
44
```
45
45
46
46
3. Create a `DBintegrityTest` as if it was a `unittest.TestCase`. It is important to define the path to the `.env` that keeps the Postgres DB credentials:
0 commit comments