-
Notifications
You must be signed in to change notification settings - Fork 57
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
[test generation] optimize for "api-version" in generated tests #2798
Comments
method-level should override client-level though, I'm not sure what this issue is opened for, can you clarify @msyyc? Thanks! |
api_version is already client level signature, so there is no need to set it when call specific method. The expected generated test shall be like:
|
We still have the ability on the method-level to override the |
Of course python permit users to override api-version when call method. In test generation, we don't want to show it since users may copy the generated test to |
ah I see, ok that makes sense. Thanks for describing @msyyc! |
"api-version" is usually client-level signature so no need to set it in specific:
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/datafactory/azure-mgmt-datafactory/generated_tests/test_data_factory_management_operations.py#L25
The text was updated successfully, but these errors were encountered: