Skip to content

Commit

Permalink
Added "curio" test mark programmatically (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeler committed Aug 31, 2020
1 parent 5604bf8 commit 659bd94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
PROXY_PORT = 8080


def pytest_configure(config):
# register an additional marker
config.addinivalue_line(
"markers",
"curio: mark the test as a coroutine, it will be run using a Curio kernel.",
)


@pytest.mark.tryfirst
def pytest_pycollect_makeitem(collector, name, obj):
curio_pytest_pycollect_makeitem(collector, name, obj)
Expand Down

0 comments on commit 659bd94

Please sign in to comment.