Skip to content

Use test-only sqlc queries instead of driver queries in test cases - #30

Merged
brandur merged 1 commit into
masterfrom
brandur-sqlc-in-tests
Jul 6, 2024
Merged

Use test-only sqlc queries instead of driver queries in test cases#30
brandur merged 1 commit into
masterfrom
brandur-sqlc-in-tests

Conversation

@brandur

@brandur brandur commented Jul 6, 2024

Copy link
Copy Markdown
Contributor

Introduce a JobGetByID in sqlc which we switch to using in tests
instead of using the inelegant job_get_by_kind_and_unique_properties()
from the driver. This also lets us remove driver as a test fixture,
thus simplifying the whole testing set up and making it easier to
understand.

Introduce a `JobGetByID` in sqlc which we switch to using in tests
instead of using the inelegant `job_get_by_kind_and_unique_properties()`
from the driver. This also lets us remove `driver` as a test fixture,
thus simplifying the whole testing set up and making it easier to
understand.
@brandur
brandur merged commit 44ed566 into master Jul 6, 2024
@brandur
brandur deleted the brandur-sqlc-in-tests branch July 6, 2024 23:28
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