python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How do I add an attribute to AsyncMock?
Code:
class SomeClass(BaseClass):
async def async_method(arg1, arg2, **kwargs):
await self.foo.bar(arg1=arg1, arg2=arg2).baz(**kwargs)
One of the tests used:
@pytest.fixture
def same_cla...
Maksim
Votes: 0
Answers: 1
How to call an async function in pytest_sessionfinish()?
I am using pytest-asyncio.
I have the following conftest.py file:
import asyncio
import pytest
from database.mongo_db import mongo
@pytest.fixture(scope="session", autouse=True)
async def...
KOB
Votes: 0
Answers: 1