Skip to content

Commit

Permalink
Removed asynctestcase.py (#14444)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleydamato authored Oct 14, 2020
1 parent c6eef9b commit c1e79e2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions sdk/tables/azure-data-tables/tests/_shared/asynctestcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,6 @@ async def get_token(self, *args):

class AsyncTableTestCase(TableTestCase):
@staticmethod
def await_prepared_test(test_fn):
"""Synchronous wrapper for async test methods. Used to avoid making changes
upstream to AbstractPreparer (which doesn't await the functions it wraps)
"""

@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))

return run

def generate_oauth_token(self):
if self.is_live:
from azure.identity.aio import ClientSecretCredential
Expand Down

0 comments on commit c1e79e2

Please sign in to comment.