New paste Repaste Download
============================= test session starts ==============================
platform linux -- Python 3.12.4, pytest-8.2.1, pluggy-1.5.0 -- /usr/local/bin/python
cachedir: .pytest_cache
rootdir: /app
configfile: pyproject.toml
plugins: mock-3.14.0, asyncio-0.23.7
asyncio: mode=Mode.AUTO
collecting ... collected 2 items
tests/services/tg.py::TestTG::test_create_bot PASSED                     [ 50%]
tests/services/tg.py::TestTG::test_download_file FAILED                  [100%]
=================================== FAILURES ===================================
__________________________ TestTG.test_download_file ___________________________
tests/services/tg.py:16: in test_download_file
    assert mocks.call_count == 1
E   AssertionError: assert 0 == 1
E    +  where 0 = <AsyncMock name='download_file' id='132884312159248'>.call_count
        mocker     = <pytest_mock.plugin.MockerFixture object at 0x78db8a38f1a0>
        mocks      = <AsyncMock name='download_file' id='132884312159248'>
        self       = <tg.TestTG object at 0x78db8a38cbc0>
============================= slowest 10 durations =============================
0.37s call     tests/services/tg.py::TestTG::test_download_file
0.01s teardown tests/services/tg.py::TestTG::test_create_bot
0.01s call     tests/services/tg.py::TestTG::test_create_bot
0.00s teardown tests/services/tg.py::TestTG::test_download_file
0.00s setup    tests/services/tg.py::TestTG::test_create_bot
0.00s setup    tests/services/tg.py::TestTG::test_download_file
=========================== short test summary info ============================
FAILED tests/services/tg.py::TestTG::test_download_file - AssertionError: assert 0 == 1
+  where 0 = <AsyncMock name='download_file' id='132884312159248'>.call_count
=================== 1 failed, 1 passed, 2 warnings in 0.51s ====================
Filename: None. Size: 2kb. View raw, , hex, or download this file.

This paste expires on 2024-06-17 01:56:34.003006. Pasted through deprecated-web.