Good evening,
I know issues might not be the best place to ask this, but I can't seem to find anything online. Any assistance is greatly appreciated!
How might someone write a unit test in PyTest to test a function that calls aiosmtplib.send() inside it?
For example:
# Function in my application
async def myfunc():
call_some_other_func()
await aiosmtplib.send(...)
# Unit testing with PyTest
@pytest.mark.asyncio
async def test_myfunc():
# what goes here?
Good evening,
I know issues might not be the best place to ask this, but I can't seem to find anything online. Any assistance is greatly appreciated!
How might someone write a unit test in PyTest to test a function that calls
aiosmtplib.send()inside it?For example: