SIENTIAPDE-1445

Update test_api.py and test_core_scouter.py to enhance timestamp validation and add new test cases

- Updated timestamp assertions in test_get_tag_values_success to reflect the correct values.
- Added new test cases in test_core_scouter.py to handle scenarios with zero affected rows and without debug data package, ensuring proper workflow execution and activity method assertions.
This commit is contained in:
vitor-aignosi
2025-12-22 14:32:45 -03:00
parent d3945692d0
commit 3127efd391
2 changed files with 181 additions and 2 deletions

View File

@@ -149,8 +149,8 @@ async def test_get_tag_values_success(api_activity):
assert result[0]['value'] == 10.5
assert result[1]['name'] == 'tag2'
assert result[2]['name'] == 'tag3'
assert result[0]['timestamp'] == '2023-01-01 12:00:00+0000'
assert result[1]['timestamp'] == '2023-01-01 12:01:00+0000'
assert result[0]['timestamp'] == '2023-01-01 12:02:00+0000'
assert result[1]['timestamp'] == '2023-01-01 12:02:00+0000'
assert result[2]['timestamp'] == '2023-01-01 12:02:00+0000'