Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"comment": "Modify this file in a trivial way to cause this test suite to run",
"modification": 14
"modification": 15
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"comment": "Modify this file in a trivial way to cause this test suite to run",
"modification": 14
"modification": 15
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ def setUpClass(cls):
)

pipeline = TestPipeline(is_integration_test=True)

runner_name = type(pipeline.runner).__name__
if 'DataflowRunner' in runner_name:
pytest.skip("Spanner emulator not compatible with dataflow runner.")

argv = pipeline.get_full_options_as_args()

known_args, _ = parser.parse_known_args(argv)
Expand Down
5 changes: 5 additions & 0 deletions sdks/python/apache_beam/ml/rag/ingestion/spanner_it_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ class SpannerVectorWriterTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
"""Set up Spanner emulator for all tests."""
pipeline = TestPipeline(is_integration_test=True)
runner_name = type(pipeline.runner).__name__
if 'DataflowRunner' in runner_name:
pytest.skip("Spanner emulator not compatible with dataflow runner.")

cls.project_id = 'test-project'
cls.instance_id = 'test-instance'
cls.table_name = 'embeddings'
Expand Down
Loading