Skip to contentSkip to conversation

python-werkzeug: add a test package for the unit and integration tests

PATCH New Derek Straka 1 participant 1 message Nov 30, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-werkzeug: add a test package for the unit and integration tests

---
 meta-python/recipes-devtools/python/python-werkzeug.inc | 13 +++++++++++++
 1 file changed, 13 insertions(+)
meta-python/recipes-devtools/python/python-werkzeug.inc +13 -0
index b2949a3..e0b524c 100644
@@ -17,6 +17,14 @@ PYPI_PACKAGE = "Werkzeug"
 
 CLEANBROKEN = "1"
 
+PACKAGES =+ "${PN}-tests"
+FILES_${PN}-tests+= " \
+    ${PYTHON_SITEPACKAGES_DIR}/werkzeug/test* \
+    ${PYTHON_SITEPACKAGES_DIR}/werkzeug/__pycache__/test* \
+    ${PYTHON_SITEPACKAGES_DIR}/werkzeug/contrib/test* \
+    ${PYTHON_SITEPACKAGES_DIR}/werkzeug/contrib/__pycache__/test* \
+"
+
 RDEPENDS_${PN} += " \
     ${PYTHON_PN}-datetime \
     ${PYTHON_PN}-difflib \
@@ -32,3 +40,8 @@ RDEPENDS_${PN} += " \
     ${PYTHON_PN}-threading \
     ${PYTHON_PN}-unixadmin \
 "
+
+RDEPENDS_${PN}-tests = " \
+    ${PN} \
+    ${PYTHON_PN}-unittest \
+"
Signature · 1 line
2.7.4