[Python-modules-commits] [pytest-localserver] 01/07: Import pytest-localserver_0.3.6.orig.tar.xz

Daniel Stender stender at moszumanska.debian.org
Sun Aug 28 11:46:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

stender pushed a commit to branch master
in repository pytest-localserver.

commit 11da907122e2b76141462153b3cd380915480849
Author: Daniel Stender <stender at debian.org>
Date:   Sun Aug 28 13:29:27 2016 +0200

    Import pytest-localserver_0.3.6.orig.tar.xz
---
 PKG-INFO                                | 15 ++++++++-------
 README                                  |  9 +++++----
 pytest_localserver.egg-info/PKG-INFO    | 15 ++++++++-------
 pytest_localserver.egg-info/SOURCES.txt |  2 --
 pytest_localserver/__init__.py          |  2 +-
 pytest_localserver/https.py             |  2 +-
 pytest_localserver/plugin.py            | 10 +++++++---
 pytest_localserver/server.csr           | 28 ----------------------------
 setup.py                                |  6 +++---
 tests/test_http.py                      |  7 +++----
 tests/test_https.py                     |  7 +++----
 tests/test_smtp.py                      |  7 +++----
 12 files changed, 42 insertions(+), 68 deletions(-)

diff --git a/PKG-INFO b/PKG-INFO
index 6de3063..225ffe3 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: pytest-localserver
-Version: 0.3.5
+Version: 0.3.6
 Summary: py.test plugin to test server connections locally.
-Home-page: http://bitbucket.org/basti/pytest-localserver/
+Home-page: http://bitbucket.org/pytest-dev/pytest-localserver/
 Author: Sebastian Rahlf
 Author-email: basti AT redtoad DOT de
 License: MIT License
-Download-URL: http://bitbucket.org/basti/pytest-localserver/downloads/
+Download-URL: http://bitbucket.org/pytest-dev/pytest-localserver/downloads/
 Description: ==================
         pytest-localserver
         ==================
@@ -129,7 +129,8 @@ Description: ==================
                 start_response(status, response_headers)
                 return ['Hello world!\n']
         
-            def pytest_funcarg__testserver(request):
+            @pytest.fixture
+            def testserver(request):
                 """Defines the testserver funcarg"""
                 server = WSGIServer(application=simple_app)
                 server.start()
@@ -175,7 +176,7 @@ Description: ==================
         Feel free to clone the repository and add your own changes. Pull requests are
         always welcome!::
         
-            hg clone https://bitbucket.org/basti/pytest-localserver
+            hg clone https://bitbucket.org/pytest-dev/pytest-localserver
         
         If you find any bugs, please file a `report`_.
         
@@ -201,8 +202,8 @@ Description: ==================
         .. _linkchecker: http://linkchecker.sourceforge.net/
         .. _WSGI application: http://www.python.org/dev/peps/pep-0333/
         .. _PyPI: http://pypi.python.org/pypi/pytest-localserver/
-        .. _bleeding-edge archive: https://bitbucket.org/basti/pytest-localserver/get/tip.tar.gz
-        .. _report: https://bitbucket.org/basti/pytest-localserver/issues/
+        .. _bleeding-edge archive: https://bitbucket.org/pytest-dev/pytest-localserver/get/tip.tar.gz
+        .. _report: https://bitbucket.org/pytest-dev/pytest-localserver/issues/
         .. _tox: http://testrun.org/tox/
         .. _a piece of software: http://pypi.python.org/pypi/python-amazon-product-api/
         .. _Mailsink recipe: http://code.activestate.com/recipes/440690/
diff --git a/README b/README
index f073e12..9a1c0ff 100644
--- a/README
+++ b/README
@@ -120,7 +120,8 @@ server ::
         start_response(status, response_headers)
         return ['Hello world!\n']
 
-    def pytest_funcarg__testserver(request):
+    @pytest.fixture
+    def testserver(request):
         """Defines the testserver funcarg"""
         server = WSGIServer(application=simple_app)
         server.start()
@@ -166,7 +167,7 @@ Development and future plans
 Feel free to clone the repository and add your own changes. Pull requests are
 always welcome!::
 
-    hg clone https://bitbucket.org/basti/pytest-localserver
+    hg clone https://bitbucket.org/pytest-dev/pytest-localserver
 
 If you find any bugs, please file a `report`_.
 
@@ -192,8 +193,8 @@ I already have a couple of ideas for future versions:
 .. _linkchecker: http://linkchecker.sourceforge.net/
 .. _WSGI application: http://www.python.org/dev/peps/pep-0333/
 .. _PyPI: http://pypi.python.org/pypi/pytest-localserver/
-.. _bleeding-edge archive: https://bitbucket.org/basti/pytest-localserver/get/tip.tar.gz
-.. _report: https://bitbucket.org/basti/pytest-localserver/issues/
+.. _bleeding-edge archive: https://bitbucket.org/pytest-dev/pytest-localserver/get/tip.tar.gz
+.. _report: https://bitbucket.org/pytest-dev/pytest-localserver/issues/
 .. _tox: http://testrun.org/tox/
 .. _a piece of software: http://pypi.python.org/pypi/python-amazon-product-api/
 .. _Mailsink recipe: http://code.activestate.com/recipes/440690/
diff --git a/pytest_localserver.egg-info/PKG-INFO b/pytest_localserver.egg-info/PKG-INFO
index 6de3063..225ffe3 100644
--- a/pytest_localserver.egg-info/PKG-INFO
+++ b/pytest_localserver.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: pytest-localserver
-Version: 0.3.5
+Version: 0.3.6
 Summary: py.test plugin to test server connections locally.
-Home-page: http://bitbucket.org/basti/pytest-localserver/
+Home-page: http://bitbucket.org/pytest-dev/pytest-localserver/
 Author: Sebastian Rahlf
 Author-email: basti AT redtoad DOT de
 License: MIT License
-Download-URL: http://bitbucket.org/basti/pytest-localserver/downloads/
+Download-URL: http://bitbucket.org/pytest-dev/pytest-localserver/downloads/
 Description: ==================
         pytest-localserver
         ==================
@@ -129,7 +129,8 @@ Description: ==================
                 start_response(status, response_headers)
                 return ['Hello world!\n']
         
-            def pytest_funcarg__testserver(request):
+            @pytest.fixture
+            def testserver(request):
                 """Defines the testserver funcarg"""
                 server = WSGIServer(application=simple_app)
                 server.start()
@@ -175,7 +176,7 @@ Description: ==================
         Feel free to clone the repository and add your own changes. Pull requests are
         always welcome!::
         
-            hg clone https://bitbucket.org/basti/pytest-localserver
+            hg clone https://bitbucket.org/pytest-dev/pytest-localserver
         
         If you find any bugs, please file a `report`_.
         
@@ -201,8 +202,8 @@ Description: ==================
         .. _linkchecker: http://linkchecker.sourceforge.net/
         .. _WSGI application: http://www.python.org/dev/peps/pep-0333/
         .. _PyPI: http://pypi.python.org/pypi/pytest-localserver/
-        .. _bleeding-edge archive: https://bitbucket.org/basti/pytest-localserver/get/tip.tar.gz
-        .. _report: https://bitbucket.org/basti/pytest-localserver/issues/
+        .. _bleeding-edge archive: https://bitbucket.org/pytest-dev/pytest-localserver/get/tip.tar.gz
+        .. _report: https://bitbucket.org/pytest-dev/pytest-localserver/issues/
         .. _tox: http://testrun.org/tox/
         .. _a piece of software: http://pypi.python.org/pypi/python-amazon-product-api/
         .. _Mailsink recipe: http://code.activestate.com/recipes/440690/
diff --git a/pytest_localserver.egg-info/SOURCES.txt b/pytest_localserver.egg-info/SOURCES.txt
index eb237c5..0f64ed0 100644
--- a/pytest_localserver.egg-info/SOURCES.txt
+++ b/pytest_localserver.egg-info/SOURCES.txt
@@ -8,9 +8,7 @@ pytest_localserver/ca.crt
 pytest_localserver/http.py
 pytest_localserver/https.py
 pytest_localserver/plugin.py
-pytest_localserver/server.csr
 pytest_localserver/server.pem
-pytest_localserver/server.pem.orig
 pytest_localserver/smtp.py
 pytest_localserver.egg-info/PKG-INFO
 pytest_localserver.egg-info/SOURCES.txt
diff --git a/pytest_localserver/__init__.py b/pytest_localserver/__init__.py
index c3e0bec..38f3a1d 100644
--- a/pytest_localserver/__init__.py
+++ b/pytest_localserver/__init__.py
@@ -1 +1 @@
-VERSION = '0.3.5'
+VERSION = '0.3.6'
diff --git a/pytest_localserver/https.py b/pytest_localserver/https.py
index 67d58bd..4c7b322 100644
--- a/pytest_localserver/https.py
+++ b/pytest_localserver/https.py
@@ -89,7 +89,7 @@ class SecureContentServer (ContentServer):
 
     A more advanced tutorial can be found `here`_.
 
-    .. _pytest-localserver CA: https://bitbucket.org/basti/pytest-localserver/src/tip/pytest_localserver/ca.crt
+    .. _pytest-localserver CA: https://bitbucket.org/pytest-dev/pytest-localserver/src/tip/pytest_localserver/ca.crt
     .. _pyOpenSSH: https://launchpad.net/pyopenssl
     """
 
diff --git a/pytest_localserver/plugin.py b/pytest_localserver/plugin.py
index 6392569..7686a90 100644
--- a/pytest_localserver/plugin.py
+++ b/pytest_localserver/plugin.py
@@ -5,9 +5,11 @@
 #
 # This program is release under the MIT license. You can find the full text of
 # the license in the LICENSE file.
+import pytest
 
 
-def pytest_funcarg__httpserver(request):
+ at pytest.fixture
+def httpserver(request):
     """The returned ``httpserver`` provides a threaded HTTP server instance
     running on a randomly assigned port on localhost. It can be taught which
     content (i.e. string) to serve with which response code and comes with
@@ -53,7 +55,8 @@ def pytest_funcarg__httpserver(request):
     return server
 
 
-def pytest_funcarg__httpsserver(request):
+ at pytest.fixture
+def httpsserver(request):
     """The returned ``httpsserver`` (note the additional S!) provides a
     threaded HTTP server instance similar to funcarg ``httpserver`` but with
     SSL encryption.
@@ -65,7 +68,8 @@ def pytest_funcarg__httpsserver(request):
     return server
 
 
-def pytest_funcarg__smtpserver(request):
+ at pytest.fixture
+def smtpserver(request):
     """The returned ``smtpserver`` provides a threaded instance of
     ``smtpd.SMTPServer`` running on localhost.  It has the following
     attributes:
diff --git a/pytest_localserver/server.csr b/pytest_localserver/server.csr
deleted file mode 100644
index 68f5ca5..0000000
--- a/pytest_localserver/server.csr
+++ /dev/null
@@ -1,28 +0,0 @@
------BEGIN CERTIFICATE REQUEST-----
-MIIEsDCCApgCAQAwazELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx
-GzAZBgNVBAoMEnB5dGVzdC1sb2NhbHNlcnZlcjEWMBQGA1UECwwNVGVzdGluZyBE
-ZXB0LjESMBAGA1UEAwwJMTI3LjAuMC4xMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A
-MIICCgKCAgEAv3Tux8Ca22wL+VC7eA0jeSJoqNg7TgOf3gIr8vq+WRV+lV/Kvawn
-+Pmv88JLIzZX+wkK8uNoFhBVxApVhA9rZ1xeu81mu9Ux2LPCoKti73SAbf93Xu4v
-QfcIOSYz438a1TymRi3I6AVSUW+YWl1V8dAsVKbKaPDdPPP4oMUSq92YvI2kBQ0S
-DnzHezRpd8zh3edYG5BPpkZCTXU+lbegh9ihjzoWVzGoY9NPGOk3FBDU/AAVawmJ
-Hbb6aTZz5K61fe9AY+KGl632iPSqo54YwMF/avZge/CFh40owEIu4Ow9DNpbcGm/
-kOsvvlu1T9ttlPA3kxjE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yKCHNYDum49kOmuuPENPztbXovI6N7ROgRgfcK
-UeWiig==
------END CERTIFICATE REQUEST-----
diff --git a/setup.py b/setup.py
index 40eed4a..065634d 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, Command
 import sys
 
 
-VERSION = '0.3.5'
+VERSION = '0.3.6'
 
 
 def read(fname):
@@ -36,8 +36,8 @@ setup(
     license='MIT License',
     description='py.test plugin to test server connections locally.',
     long_description=read('README'),
-    url='http://bitbucket.org/basti/pytest-localserver/',
-    download_url='http://bitbucket.org/basti/pytest-localserver/downloads/',
+    url='http://bitbucket.org/pytest-dev/pytest-localserver/',
+    download_url='http://bitbucket.org/pytest-dev/pytest-localserver/downloads/',
 
     packages=['pytest_localserver'],
     install_requires=[
diff --git a/tests/test_http.py b/tests/test_http.py
index cdb8504..046fe1c 100644
--- a/tests/test_http.py
+++ b/tests/test_http.py
@@ -6,10 +6,9 @@ from pytest_localserver import http, plugin
 from pytest_localserver import VERSION
 
 
-def pytest_funcarg__httpserver(request):
-    # define funcargs here again in order to run tests without having to
-    # install the plugin anew every single time
-    return plugin.pytest_funcarg__httpserver(request)
+# define test fixture here again in order to run tests without having to
+# install the plugin anew every single time
+httpserver = plugin.httpserver
 
 
 def test_httpserver_funcarg(httpserver):
diff --git a/tests/test_https.py b/tests/test_https.py
index 562653b..0fdc4a2 100644
--- a/tests/test_https.py
+++ b/tests/test_https.py
@@ -6,10 +6,9 @@ import requests
 from pytest_localserver import https, plugin
 
 
-def pytest_funcarg__httpsserver(request):
-    # define funcargs here again in order to run tests without having to
-    # install the plugin anew every single time
-    return plugin.pytest_funcarg__httpsserver(request)
+# define test fixture here again in order to run tests without having to
+# install the plugin anew every single time
+httpsserver = plugin.httpsserver
 
 
 def test_httpsserver_funcarg(httpsserver):
diff --git a/tests/test_smtp.py b/tests/test_smtp.py
index ce302b4..86e2d9b 100644
--- a/tests/test_smtp.py
+++ b/tests/test_smtp.py
@@ -28,10 +28,9 @@ def send_plain_email(to, from_, subject, txt, server=('localhost', 25)):
     server.quit()
 
 
-def pytest_funcarg__smtpserver(request):
-    # define funcargs here again in order to run tests without having to
-    # install the plugin anew every single time
-    return plugin.pytest_funcarg__smtpserver(request)
+# define test fixture here again in order to run tests without having to
+# install the plugin anew every single time
+smtpsserver = plugin.smtpserver
 
 
 def test_smtpserver_funcarg(smtpserver):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pytest-localserver.git



More information about the Python-modules-commits mailing list