SIENTIAPDE-1193
Refactor Redis key format in tests for last data timestamp to use colons, enhancing readability and consistency with recent changes.
This commit is contained in:
1
coverage.sh
Executable file
1
coverage.sh
Executable file
@@ -0,0 +1 @@
|
|||||||
|
pytest --cov=sientia --cov-report=html && xdg-open htmlcov/index.html
|
||||||
@@ -83,7 +83,7 @@ async def test_get_last_data_timestamp_not_none(redis_activity):
|
|||||||
result = await redis_activity.get_last_data_timestamp(test_data)
|
result = await redis_activity.get_last_data_timestamp(test_data)
|
||||||
|
|
||||||
redis_activity.get.assert_called_once_with(
|
redis_activity.get.assert_called_once_with(
|
||||||
'last_data_timestamp_test_pipeline_test_schedule'
|
'last_data_timestamp:test_pipeline:test_schedule'
|
||||||
)
|
)
|
||||||
|
|
||||||
assert result == '2023-01-01 12:00:00'
|
assert result == '2023-01-01 12:00:00'
|
||||||
@@ -163,7 +163,7 @@ async def test_put_last_data_timestamp_not_empty_dataframe(redis_activity):
|
|||||||
assert result == '2023-01-01 12:00:01'
|
assert result == '2023-01-01 12:00:01'
|
||||||
|
|
||||||
redis_activity.set.assert_called_once_with(
|
redis_activity.set.assert_called_once_with(
|
||||||
'last_data_timestamp_test_pipeline_test_schedule',
|
'last_data_timestamp:test_pipeline:test_schedule',
|
||||||
'2023-01-01 12:00:01',
|
'2023-01-01 12:00:01',
|
||||||
ttl=18000
|
ttl=18000
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user