Conversation
Signed-off-by: Aniket Singh Rawat <sprx@gmail.com>
Signed-off-by: Aniket Singh Rawat <sprx@gmail.com>
|
@VallariAg I have separated out the service layer in If this looks good I can proceed with writing the tests. |
|
hi @VallariAg can you review this? |
|
@dikwickley please refer my comments above |
|
@VallariAg i can't see your comments |
|
@dikwickley oh, that's weird! I added a comment to that thread, I wonder if you are able to see that? But here's what my comments said for
edit: my bad, I didn't realise that if I don't "submit" a review then the comments would only be visible to me! |
| ) | ||
| return response_org_dict | ||
|
|
||
| class AuthServiceMock(AuthService): |
There was a problem hiding this comment.
This class is used only for testing so it should be defined somewhere under /tests directory
You can probably create similar dir structure in /tests as it is in /src.
There was a problem hiding this comment.
Also to mock functions, you can look into unittest.mock functions and pytest fixtures
https://docs.python.org/3/library/unittest.mock.html
There was a problem hiding this comment.
Oh you added these 2 weeks ago, I am only able to see them now. I'll make these changes.
This PR aims to add tests for the auth service. WIP for #5