Skip to content

Commit 0df1ab7

Browse files
No public description
PiperOrigin-RevId: 769252616
1 parent c4cc1e1 commit 0df1ab7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

official/projects/waste_identification_ml/Triton_TF_Cloud_Deployment/client/big_query_ops_test.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
import unittest
16-
from official.projects.waste_identification_ml.Triton_TF_Cloud_Deployment.client.biq_query_ops import _SCHEMA
16+
from official.projects.waste_identification_ml.Triton_TF_Cloud_Deployment.client import big_query_ops
1717

1818

1919
class TestSchemaDefinition(unittest.TestCase):
@@ -35,11 +35,15 @@ def test_schema_definition(self):
3535

3636
# Check schema length
3737
self.assertEqual(
38-
len(_SCHEMA), len(expected_schema), "Schema length mismatch."
38+
len(big_query_ops._SCHEMA),
39+
len(expected_schema),
40+
"Schema length mismatch.",
3941
)
4042

4143
# Validate each field's name, type, and mode in order
42-
for idx, (field, expected) in enumerate(zip(_SCHEMA, expected_schema)):
44+
for idx, (field, expected) in enumerate(
45+
zip(big_query_ops._SCHEMA, expected_schema)
46+
):
4347
expected_name, expected_type, expected_mode = expected
4448
self.assertEqual(
4549
(field.name, field.field_type, field.mode),

0 commit comments

Comments
 (0)