From 70976b04be195b6ae6fc9a74811429148479a83c Mon Sep 17 00:00:00 2001 From: Mick Koch Date: Wed, 31 Oct 2018 14:18:12 -0400 Subject: [PATCH] Add test for __init__.py collection with package directory as argument --- testing/test_collection.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/testing/test_collection.py b/testing/test_collection.py index 7f6791dae..58f4afb38 100644 --- a/testing/test_collection.py +++ b/testing/test_collection.py @@ -957,6 +957,15 @@ def test_collect_init_tests(testdir): "*", ] ) + result = testdir.runpytest("./tests", "--collect-only") + result.stdout.fnmatch_lines( + [ + "*", + "*", + "*", + "*", + ] + ) def test_collect_invalid_signature_message(testdir):