Skip to content

Commit

Permalink
Use is_valid_str_value to check str
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca committed Jan 7, 2025
1 parent 05e8177 commit 00ba721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python_testing/TC_DGSW_2_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async def test_TC_DGSW_2_3(self):
asserts.assert_true(self.is_valid_uint64_value(metric.id), "Id field should be a uint64 type")

if metric.name is not None:
asserts.assert_true(self.is_valid_uint64_value(metric.name), "Name field should be a string type")
asserts.assert_true(self.is_valid_str_value(metric.name), "Name field should be a string type")

if metric.stackFreeCurrent is not None:
asserts.assert_true(self.is_valid_uint32_value(metric.stackFreeCurrent),
Expand Down Expand Up @@ -180,7 +180,7 @@ async def test_TC_DGSW_2_3(self):
asserts.assert_true(self.is_valid_uint64_value(metric.id), "Id field should be a uint64 type")

if metric.name is not None:
asserts.assert_true(self.is_valid_uint64_value(metric.name), "Name field should be a string type")
asserts.assert_true(self.is_valid_str_value(metric.name), "Name field should be a string type")

if metric.stackFreeCurrent is not None:
asserts.assert_true(self.is_valid_uint32_value(metric.stackFreeCurrent),
Expand Down

0 comments on commit 00ba721

Please sign in to comment.