Skip to content

Using Sys.Argv's With Pytest #8783

Discussion options

You must be logged in to vote

Pytest is a own cli program with own cli handling

If you want to test a cli you have to do what everyone else is doing and enable your main function to take an alternative to sys.argv

I can elaborate once I get back to the computer later if necessary

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Smilin-Dominator
Comment options

@RonnyPfannschmidt
Comment options

@Smilin-Dominator
Comment options

@hughesadam87
Comment options

Answer selected by Smilin-Dominator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants