Toffee Test Report
Name: Tofee
Email: -

Summary

4
4 failed

Line Coverage

Coverage Rate Hint Lines Total Lines Detail
N/A N/A N/A N/A

Functional Coverage

Coverage Rate Hint Points Total Points Detail
0% 0 0 View Details

Warnings

WARNING
/home/johnny/mlvp_env/lib/python3.10/site-packages/_pytest/fixtures.py:1181
'test_basic_query' requested an async fixture 'lqrar_env', with no plugin or hook that handled it. This is usually an error, as pytest does not natively support it. This will turn into an error in pytest 9. See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture
WARNING
/home/johnny/mlvp_env/lib/python3.10/site-packages/pytest_asyncio/plugin.py:598
asyncio test 'test_basic_query' requested async @pytest.fixture 'lqrar_env' in strict mode. You might want to use @pytest_asyncio.fixture or switch to auto mode. This will become an error in future versions of flake8-asyncio.
WARNING
/home/johnny/mlvp_env/lib/python3.10/site-packages/_pytest/fixtures.py:1181
'test_release_functionality' requested an async fixture 'lqrar_env', with no plugin or hook that handled it. This is usually an error, as pytest does not natively support it. This will turn into an error in pytest 9. See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture
WARNING
/home/johnny/mlvp_env/lib/python3.10/site-packages/pytest_asyncio/plugin.py:598
asyncio test 'test_release_functionality' requested async @pytest.fixture 'lqrar_env' in strict mode. You might want to use @pytest_asyncio.fixture or switch to auto mode. This will become an error in future versions of flake8-asyncio.
WARNING
/home/johnny/mlvp_env/lib/python3.10/site-packages/_pytest/fixtures.py:1181
'test_multiple_queries' requested an async fixture 'lqrar_env', with no plugin or hook that handled it. This is usually an error, as pytest does not natively support it. This will turn into an error in pytest 9. See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture
WARNING
/home/johnny/mlvp_env/lib/python3.10/site-packages/pytest_asyncio/plugin.py:598
asyncio test 'test_multiple_queries' requested async @pytest.fixture 'lqrar_env' in strict mode. You might want to use @pytest_asyncio.fixture or switch to auto mode. This will become an error in future versions of flake8-asyncio.
WARNING
/home/johnny/mlvp_env/lib/python3.10/site-packages/_pytest/fixtures.py:1181
'test_coverage_points' requested an async fixture 'lqrar_env', with no plugin or hook that handled it. This is usually an error, as pytest does not natively support it. This will turn into an error in pytest 9. See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture
WARNING
/home/johnny/mlvp_env/lib/python3.10/site-packages/pytest_asyncio/plugin.py:598
asyncio test 'test_coverage_points' requested async @pytest.fixture 'lqrar_env' in strict mode. You might want to use @pytest_asyncio.fixture or switch to auto mode. This will become an error in future versions of flake8-asyncio.

Tests

tests/test_load_queue_rar.py 4 0:00:00.004619

FAILED TestLoadQueueRAR::test_basic_query 0:00:00.001482

测试基本查询功能

AttributeError: 'async_generator' object has no attribute 'agent'. Did you mean: 'asend'?

Setup

Call

self = 
lqrar_env = 

    @pytest.mark.asyncio
    async def test_basic_query(self, lqrar_env):
        """测试基本查询功能"""
        env = lqrar_env
    
        # 发送基本查询
        paddr = 0x1000
>       req_id = await env.agent.send_load_query(paddr)
E       AttributeError: 'async_generator' object has no attribute 'agent'. Did you mean: 'asend'?

tests/test_load_queue_rar.py:167: AttributeError

Teardown

FAILED TestLoadQueueRAR::test_release_functionality 0:00:00.001066

测试释放功能

AttributeError: 'async_generator' object has no attribute 'agent'. Did you mean: 'asend'?

Setup

Call

self = 
lqrar_env = 

    @pytest.mark.asyncio
    async def test_release_functionality(self, lqrar_env):
        """测试释放功能"""
        env = lqrar_env
    
        # 发送查询
        paddr = 0x2000
>       await env.agent.send_load_query(paddr)
E       AttributeError: 'async_generator' object has no attribute 'agent'. Did you mean: 'asend'?

tests/test_load_queue_rar.py:183: AttributeError

Teardown

FAILED TestLoadQueueRAR::test_multiple_queries 0:00:00.000934

测试多个查询

AttributeError: 'async_generator' object has no attribute 'agent'. Did you mean: 'asend'?

Setup

Call

self = 
lqrar_env = 

    @pytest.mark.asyncio
    async def test_multiple_queries(self, lqrar_env):
        """测试多个查询"""
        env = lqrar_env
    
        addrs = [0x3000, 0x4000, 0x5000]
    
        for addr in addrs:
>           await env.agent.send_load_query(addr)
E           AttributeError: 'async_generator' object has no attribute 'agent'. Did you mean: 'asend'?

tests/test_load_queue_rar.py:200: AttributeError

Teardown

FAILED TestLoadQueueRAR::test_coverage_points 0:00:00.001137

测试覆盖率点

AttributeError: 'async_generator' object has no attribute 'agent'. Did you mean: 'asend'?

Setup

Call

self = 
lqrar_env = 

    @pytest.mark.asyncio
    async def test_coverage_points(self, lqrar_env):
        """测试覆盖率点"""
        env = lqrar_env
    
        # 触发各种覆盖率点
        for i in range(10):
            addr = 0x6000 + i * 0x100
>           await env.agent.send_load_query(addr)
E           AttributeError: 'async_generator' object has no attribute 'agent'. Did you mean: 'asend'?

tests/test_load_queue_rar.py:214: AttributeError

Teardown