Skip to content

Commit 117ff2a

Browse files
print install type for test
1 parent 8801324 commit 117ff2a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import py
2+
import apipkg
3+
LOCAL_APIPKG = py.path.local(__file__).dirpath().join('src/apipkg/__init__.py')
4+
INSTALL_TYPE = 'editable' if apipkg.__file__ == LOCAL_APIPKG else 'full'
5+
6+
7+
def pytest_report_header(startdir):
8+
return "apipkg {install_type} install version={version}".format(
9+
install_type=INSTALL_TYPE, version=apipkg.__version__)

0 commit comments

Comments
 (0)