Skip to content

IsolatedAsyncioTestCase compatibility #239

@mrhamburg

Description

@mrhamburg

Hi, I'm trying to get approvaltests to run in an async environment using the IsolatedAsyncioTestCase as base class. Instead of linking to the local repository the results are placed in a different directory:

home/username/.local/share/uv/python/cpython3.12.0-linux-x86_64-gnu/lib/python3.12/unittest/SomeTests._callMaybeAsync.received.txt

Any tips on how to get it to point at the current dir and function instead?

Example code:

from unittest import IsolatedAsyncioTestCase
from approvaltests import verify

class SomeTests(IsolatedAsyncioTestCase):
    async def test_example(self):
        verify("something")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions