[Pytest-commit] commit/pytest: hpk42: backport fixed issue620 (doc for genscript)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Oct 24 13:53:49 CEST 2014


1 new commit in pytest:

https://bitbucket.org/hpk42/pytest/commits/2a242d5129aa/
Changeset:   2a242d5129aa
Branch:      pytest-2.6
User:        hpk42
Date:        2014-10-24 11:53:39+00:00
Summary:     backport fixed issue620 (doc for genscript)
Affected #:  2 files

diff -r a460a4db4589486f62af8716f6960df3edc6d99f -r 2a242d5129aa1e35a07f0979e9b7ddcc1b348c2d CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -15,6 +15,10 @@
 
 - fix issue604: Escape % character in the assertion message.
 
+- fix issue620: add explanation in the --genscript target about what
+  the binary blob means. Thanks Dinu Gherman.
+
+
 2.6.3
 -----------
 

diff -r a460a4db4589486f62af8716f6960df3edc6d99f -r 2a242d5129aa1e35a07f0979e9b7ddcc1b348c2d _pytest/standalonetemplate.py
--- a/_pytest/standalonetemplate.py
+++ b/_pytest/standalonetemplate.py
@@ -1,5 +1,24 @@
 #! /usr/bin/env python
 
+# Hi There!
+# You may be wondering what this giant blob of binary data here is, you might
+# even be worried that we're up to something nefarious (good for you for being
+# paranoid!). This is a base64 encoding of a zip file, this zip file contains
+# a fully functional basic pytest script.
+#
+# Pytest is a thing that tests packages, pytest itself is a package that some-
+# one might want to install, especially if they're looking to run tests inside
+# some package they want to install. Pytest has a lot of code to collect and
+# execute tests, and other such sort of "tribal knowledge" that has been en-
+# coded in its code base. Because of this we basically include a basic copy
+# of pytest inside this blob. We do this  because it let's you as a maintainer
+# or application developer who wants people who don't deal with python much to
+# easily run tests without installing the complete pytest package.
+#
+# If you're wondering how this is created: you can create it yourself if you
+# have a complete pytest installation by using this command on the command-
+# line: ``py.test --genscript=runtests.py``.
+
 sources = """
 @SOURCES@"""

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the pytest-commit mailing list