Skip to content

Add testing section to docs #179

@trp07

Description

@trp07

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    📕 docsdocumentation needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions