euri10 / pytest_autouse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sync first fails

import pytest

from src import __version__


def test_version() -> None:
    assert __version__ == "0.1.0"

# @pytest.mark.anyio
# async def test_version() -> None:
#     assert __version__ == "0.1.0"

@pytest.mark.anyio
async def test_afixture(afixture: int):
    print(afixture)
    assert afixture == 1

async first passes

import pytest

from src import __version__


# def test_version() -> None:
#     assert __version__ == "0.1.0"

@pytest.mark.anyio
async def test_version() -> None:
    assert __version__ == "0.1.0"

@pytest.mark.anyio
async def test_afixture(afixture: int):
    print(afixture)
    assert afixture == 1

About


Languages

Language:Python 100.0%