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
Hello,
Using latest pysipp (with sipp 3.5.2):
import pysipp uac = pysipp.client(invalid_arg='foo')
Is there a way to trigger an error or warning when passing an invalid argument ? Best regards
The text was updated successfully, but these errors were encountered:
Ahh good catch. Yeah we should probably have an arg validator 😂
I'm kind of surprised this doesn't error.
@oza4h07 would you mind writing a simple test for this and then we can get a patch in?
Sorry, something went wrong.
I'll try to write such test in the coming days ... Thanks for looking at this !
@oza4h07 no problema amigo.
I think our main issue is going to be that all the option keys are currently defined inside strings in our sipp_spec: list[Union[str, Field]] thing.
sipp_spec: list[Union[str, Field]]
Looking at the code it seems like it should already be raising an error:
Renderer._specparams
kwargs
pysipp.client(invalid_arg='foo')
UserAgent
SippCmd.__init__()
.applydict()
self._init = True
I would try adjusting line 121 to be above line 119 and see if that catches this. Only question is if it will break everything else 😂
No branches or pull requests
Hello,
Using latest pysipp (with sipp 3.5.2):
Is there a way to trigger an error or warning when passing an invalid argument ?
Best regards
The text was updated successfully, but these errors were encountered: