File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed
Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 1313# See the License for the specific language governing permissions and
1414# limitations under the License.
1515#
16- import asyncio
1716import pytest
1817import uuid
1918from google .cloud .bigtable .data ._cross_sync import CrossSync
@@ -29,14 +28,6 @@ class SystemTestRunner:
2928 used by standard system tests, and metrics tests
3029 """
3130
32- @CrossSync .drop
33- @pytest .fixture (scope = "session" )
34- def event_loop (self ):
35- loop = asyncio .get_event_loop ()
36- yield loop
37- loop .stop ()
38- loop .close ()
39-
4031 @pytest .fixture (scope = "session" )
4132 def init_table_id (self ):
4233 """
Original file line number Diff line number Diff line change @@ -58,6 +58,14 @@ def __repr__(self):
5858@CrossSync .convert_class (sync_name = "TestMetrics" )
5959class TestMetricsAsync (SystemTestRunner ):
6060
61+ @CrossSync .drop
62+ @pytest .fixture (scope = "session" )
63+ def event_loop (self ):
64+ loop = asyncio .get_event_loop ()
65+ yield loop
66+ loop .stop ()
67+ loop .close ()
68+
6169 def _make_client (self ):
6270 project = os .getenv ("GOOGLE_CLOUD_PROJECT" ) or None
6371 return CrossSync .DataClient (project = project )
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ import asyncio
1516import pytest
1617import datetime
1718import uuid
@@ -152,6 +153,15 @@ async def create_row_and_mutation(
152153
153154@CrossSync .convert_class (sync_name = "TestSystem" )
154155class TestSystemAsync (SystemTestRunner ):
156+
157+ @CrossSync .drop
158+ @pytest .fixture (scope = "session" )
159+ def event_loop (self ):
160+ loop = asyncio .get_event_loop ()
161+ yield loop
162+ loop .stop ()
163+ loop .close ()
164+
155165 def _make_client (self ):
156166 project = os .getenv ("GOOGLE_CLOUD_PROJECT" ) or None
157167 return CrossSync .DataClient (project = project )
You can’t perform that action at this time.
0 commit comments