Skip to content

[textanalytics] switch to kwargs where we run nonrecorded tests#22614

Merged
kristapratico merged 2 commits intoAzure:mainfrom
kristapratico:ta-fix-no-record-tests
Jan 21, 2022
Merged

[textanalytics] switch to kwargs where we run nonrecorded tests#22614
kristapratico merged 2 commits intoAzure:mainfrom
kristapratico:ta-fix-no-record-tests

Conversation

@kristapratico
Copy link
Contributor

@kristapratico kristapratico commented Jan 21, 2022

If we don't want to record a test, we omit the @recorded_by_proxy decorator. However, this decorator allows the test params be passed as actual params, whereas in its absence, pytest treats any params as fixtures. Moving test params to kwargs for unrecorded tests fixes the issue. Thanks @mccoyp for the help!

@kristapratico kristapratico merged commit 895dc5a into Azure:main Jan 21, 2022
@kristapratico kristapratico deleted the ta-fix-no-record-tests branch January 21, 2022 17:23
rakshith91 pushed a commit to rakshith91/azure-sdk-for-python that referenced this pull request Apr 10, 2022
…e#22614)

* switch to kwargs where we run nonrecorded tests

* remove unused import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants