Skip to content
New issue

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

Use mocks for DB in tests of API handlers #59

Closed
ShoshinNikita opened this issue Jan 18, 2020 · 1 comment
Closed

Use mocks for DB in tests of API handlers #59

ShoshinNikita opened this issue Jan 18, 2020 · 1 comment

Comments

@ShoshinNikita
Copy link
Owner

Use mocks for tests in internal/web package instead of real DB connection. It will let us run tests without a PostgreSQL instance.

We can use github.com/golang/mock package for mocking

@ShoshinNikita
Copy link
Owner Author

Close in favor of #123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant