Skip to content

Commit dc3e456

Browse files
authored
Add quick reference links to README.md
Added quick reference links for pytest-capquery documentation. Signed-off-by: Felipe Cardoso Martins <54610567+fmartins@users.noreply.github.com>
1 parent 05793a8 commit dc3e456

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ The plugin does not provide a default database fixture, as it is designed to ada
5252
SQLAlchemy topology. You **must** define a global fixture in your `conftest.py` to bind
5353
`pytest-capquery` to your project's database engine.
5454

55+
Quick references:
56+
57+
- [Pytest fixture configuring the DB engine & Capquery context](https://github.com/fmartins/pytest-capquery/blob/main/tests/e2e/postgres/conftest.py)
58+
- [Test sample using the capquery snapshot support](https://github.com/fmartins/pytest-capquery/blob/main/tests/e2e/postgres/test_snapshot.py)
59+
- [Test asset for documentation and easy review of the DBA](https://github.com/fmartins/pytest-capquery/blob/main/tests/e2e/postgres/__capquery_snapshots__/test_snapshot/test_insert_and_select_snapshot.sql)
60+
- [Test sample using the super verbose inline SQL](https://github.com/fmartins/pytest-capquery/blob/main/tests/e2e/postgres/test_assert_executed_queries.py)
61+
62+
5563
### 1. Setting Up Your Fixture (`conftest.py`)
5664

5765
To intercept queries from your custom engine, use the `CapQueryWrapper` and inject the

0 commit comments

Comments
 (0)