Skip to content

Commit

Permalink
[textanalytics] trim kwargs for async preparer (#10380)
Browse files Browse the repository at this point in the history
* trim kwargs for async preparer

* also update codeowners
  • Loading branch information
kristapratico authored Mar 19, 2020
1 parent 92a7b50 commit 334e327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
/sql/sql/ @jaredmoo
/sdk/servicebus/ @annatisch @yunhaoling @YijunXieMS @KieranBrantnerMagee
/sdk/synapse/ @aim-for-better @idear1203
/sdk/textanalytics/ @kristapratico
/sdk/textanalytics/ @kristapratico @iscai-msft

# Management Plane
/**/*mgmt*/ @zikalino
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# --------------------------------------------------------------------------
import asyncio
import functools
from azure_devtools.scenario_tests.utilities import trim_kwargs_from_test_function
from azure.core.credentials import AccessToken
from testcase import TextAnalyticsTest

Expand All @@ -31,6 +32,7 @@ def await_prepared_test(test_fn):

@functools.wraps(test_fn)
def run(test_class_instance, *args, **kwargs):
trim_kwargs_from_test_function(test_fn, kwargs)
loop = asyncio.get_event_loop()
return loop.run_until_complete(test_fn(test_class_instance, **kwargs))

Expand Down

0 comments on commit 334e327

Please sign in to comment.