We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, we use a mock database to test the create bounty flow
mockDb := dbMocks.NewDatabase(t) mockHttpClient := mocks.NewHttpClient(t) bHandler := NewBountyHandler(mockHttpClient, mockDb
We want to update the mock DB to a real database spun up on a docker container and test with the DB.
bHandler := NewBountyHandler(mockClient, db.TestDB)
We will remove all the mock DB functions, and use real database DB functions used in production to test the create bounty flow. e.g
mockDb.On("CreateOrEditBounty", "pub-key", "1111").Return(db.NewBounty{}, errors.New("some-error")).Once()
The text was updated successfully, but these errors were encountered:
elraphty
Successfully merging a pull request may close this issue.
Context
Currently, we use a mock database to test the create bounty flow
Design
We want to update the mock DB to a real database spun up on a docker container and test with the DB.
We will remove all the mock DB functions, and use real database DB functions used in production to test the create bounty flow.
e.g
Acceptance Criteria
The text was updated successfully, but these errors were encountered: