Skip to content

Commit

Permalink
make the table name unique in ReadUsingStorageApiTests (#31552)
Browse files Browse the repository at this point in the history
  • Loading branch information
liferoad authored Jun 10, 2024
1 parent 500ca17 commit d560aa6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdks/python/apache_beam/io/gcp/bigquery_read_it_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def test_table_schema_retrieve_with_direct_read(self):


class ReadUsingStorageApiTests(BigQueryReadIntegrationTests):
BIG_QUERY_DATASET_ID = 'python_read_table_'
TABLE_DATA = [{
'number': 1,
'string': '你好',
Expand All @@ -330,7 +331,8 @@ class ReadUsingStorageApiTests(BigQueryReadIntegrationTests):
@classmethod
def setUpClass(cls):
super(ReadUsingStorageApiTests, cls).setUpClass()
cls.table_name = 'python_read_table'
cls.table_name = '%s%d%s' % (
cls.BIG_QUERY_DATASET_ID, int(time.time()), secrets.token_hex(3))
cls._create_table(cls.table_name)

table_id = '{}.{}'.format(cls.dataset_id, cls.table_name)
Expand Down

0 comments on commit d560aa6

Please sign in to comment.