-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
migrationRelated to migrating from other tools (like pytest)Related to migrating from other tools (like pytest)
Description
I think this is quite a challenge to get perfect, but feels like a cool thing to do.
import pytest
@pytest.fixture
def fixture():
return 1Into
import karva
@karva.fixture
def fixture():
return 1One thing we really need to think about is import statements.
We must ensure all unused imports of pytest are removed, and that we add karva imports in the "correct" place.
I think we should always just add import karva.
I think there are some cases where we may have to migrate to karva wen the user already has some karva code.
import pytest
from karva import tags
@pytest.fixture
def fixture():
return 1
@tags.parametrize("a", [1,2,3])
def test_something("a"): ...But even in this example i still think we should add import karva.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
migrationRelated to migrating from other tools (like pytest)Related to migrating from other tools (like pytest)