SIENTIAPDE-1005
Unit test fixes
This commit is contained in:
@@ -108,7 +108,8 @@ async def test_generate_and_send_data_no_topic(faker_instance):
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_generate_and_send_data_random_values(faker_instance, mock_kafka_producer):
|
||||
@patch('scouter.activities.faker.random.random', return_value=0.5)
|
||||
async def test_generate_and_send_data_random_values(_random, faker_instance, mock_kafka_producer):
|
||||
"""Test that random values are within expected ranges"""
|
||||
# Call the method
|
||||
await faker_instance.generate_and_send_data({'topic': 'test_topic'})
|
||||
|
||||
Reference in New Issue
Block a user