Skip to content

docs: Use MockProvideRef<DatabaseConnection> in an example test - #513

Merged
spencewenski merged 2 commits into
mainfrom
mock-db-test
Nov 17, 2024
Merged

spencewenski merged 2 commits into
mainfrom
mock-db-test

Conversation

@spencewenski

Copy link
Copy Markdown
Member

Add an example of using MockProvideRef<DatabaseConnection> to provide a MockDatabase from SeaORM in a test.

Add an example of using `MockProvideRef<DatabaseConnection>` to provide
a `MockDatabase` from SeaORM in a test.
@codecov

codecov Bot commented Nov 17, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 40.58%. Comparing base (684e52b) to head (b223aca).
Report is 1 commits behind head on main.

Files with missing lines Coverage Δ
src/app/context.rs 11.80% <ø> (+0.12%) ⬆️
src/service/runner.rs 0.00% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 684e52b...b223aca. Read the comment docs.

@spencewenski
spencewenski merged commit 3f0296b into main Nov 17, 2024
@spencewenski
spencewenski deleted the mock-db-test branch November 17, 2024 02:25
@github-actions github-actions Bot mentioned this pull request Nov 17, 2024
spencewenski pushed a commit that referenced this pull request Nov 17, 2024
## 🤖 New release
* `roadster`: 0.6.19 -> 0.6.20 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.6.20](roadster-v0.6.19...roadster-v0.6.20)
- 2024-11-17

### Added

- Enable converting `roadster::Error` to `sidekiq::Error`
([#514](#514))

### Other

- Use `MockProvideRef<DatabaseConnection>` in an example test
([#513](#513))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant