How to overide db for testing CLI commands #722
Replies: 1 comment
-
Mocking the database is one way. There is a Real Python post Understanding the Python Mock Object Library. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I have created commands which use database session to fetch the data from the db. Is there any way I can test the commands by over-riding the database session for testing the typer commands
Operating System
Linux
Operating System Details
No response
Typer Version
0.9.0
Python Version
3.8
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions