A PyTest plugin which provides an FTP fixture for your tests
Project description
=================
PyTest FTP Server
=================
.. image:: https://img.shields.io/pypi/v/pytest_localftpserver.svg
:target: https://pypi.python.org/pypi/pytest_localftpserver
.. image:: https://img.shields.io/pypi/pyversions/pytest_localftpserver.svg
:target: https://pypi.org/project/pytest/
.. image:: https://travis-ci.org/oz123/pytest-localftpserver.svg?branch=master
:target: https://travis-ci.org/oz123/pytest-localftpserver
.. image:: https://ci.appveyor.com/api/projects/status/github/oz123/pytest-localftpserver?svg=true
:target: https://ci.appveyor.com/project/oz123/pytest-localftpserver/branch/master
.. image:: https://readthedocs.org/projects/pytest-ftp-server/badge/?version=latest
:target: https://pytest-ftp-server.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/oz123/pytest-localftpserver/shield.svg
:target: https://pyup.io/repos/github/oz123/pytest-localftpserver/
:alt: Updates
.. image:: https://coveralls.io/repos/github/oz123/pytest-localftpserver/badge.svg
:target: https://coveralls.io/github/oz123/pytest-localftpserver
:alt: Coverage
A PyTest plugin which provides an FTP fixture for your tests
* Free software: MIT license
* Documentation: https://pytest-ftp-server.readthedocs.io.
Usage Quickstart:
=================
``ftpserver``
provides a threaded FTP server where you can upload files and test FTP
functionality. It has the following attributes:
* ``ftp_port`` - the server port as integer
* ``anon_root`` - the root of anonymous user
* ``ftp_home`` - the root of authenticated user
See the tests directory or the documentation for examples.
You need `pytest-env <https://pypi.org/project/pytest-env/>`_ or
`tox <https://pypi.org/project/tox/>`_
to change the default settings of this plugin.
Sample config for pytest-cov::
$ cat pytest.ini
[pytest]
env =
FTP_PORT=31175
FTP_USER=benz
FTP_PASS=erni1
Sample config for Tox::
$ cat tox.ini
[tox]
envlist = py{27,34,35,36}, flake8
[testenv]
setenv =
FTP_USER = benz
FTP_PASS = erni1
FTP_HOME = {envtmpdir}
FTP_PORT = 31175
commands =
py.test tests
Credits
=======
This package was inspired by, https://pypi.python.org/pypi/pytest-localserver/
made by Sebastian Rahlf, which lacks an FTP server.
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.1.0 (2016-12-09)
------------------
* First release on PyPI.
PyTest FTP Server
=================
.. image:: https://img.shields.io/pypi/v/pytest_localftpserver.svg
:target: https://pypi.python.org/pypi/pytest_localftpserver
.. image:: https://img.shields.io/pypi/pyversions/pytest_localftpserver.svg
:target: https://pypi.org/project/pytest/
.. image:: https://travis-ci.org/oz123/pytest-localftpserver.svg?branch=master
:target: https://travis-ci.org/oz123/pytest-localftpserver
.. image:: https://ci.appveyor.com/api/projects/status/github/oz123/pytest-localftpserver?svg=true
:target: https://ci.appveyor.com/project/oz123/pytest-localftpserver/branch/master
.. image:: https://readthedocs.org/projects/pytest-ftp-server/badge/?version=latest
:target: https://pytest-ftp-server.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/oz123/pytest-localftpserver/shield.svg
:target: https://pyup.io/repos/github/oz123/pytest-localftpserver/
:alt: Updates
.. image:: https://coveralls.io/repos/github/oz123/pytest-localftpserver/badge.svg
:target: https://coveralls.io/github/oz123/pytest-localftpserver
:alt: Coverage
A PyTest plugin which provides an FTP fixture for your tests
* Free software: MIT license
* Documentation: https://pytest-ftp-server.readthedocs.io.
Usage Quickstart:
=================
``ftpserver``
provides a threaded FTP server where you can upload files and test FTP
functionality. It has the following attributes:
* ``ftp_port`` - the server port as integer
* ``anon_root`` - the root of anonymous user
* ``ftp_home`` - the root of authenticated user
See the tests directory or the documentation for examples.
You need `pytest-env <https://pypi.org/project/pytest-env/>`_ or
`tox <https://pypi.org/project/tox/>`_
to change the default settings of this plugin.
Sample config for pytest-cov::
$ cat pytest.ini
[pytest]
env =
FTP_PORT=31175
FTP_USER=benz
FTP_PASS=erni1
Sample config for Tox::
$ cat tox.ini
[tox]
envlist = py{27,34,35,36}, flake8
[testenv]
setenv =
FTP_USER = benz
FTP_PASS = erni1
FTP_HOME = {envtmpdir}
FTP_PORT = 31175
commands =
py.test tests
Credits
=======
This package was inspired by, https://pypi.python.org/pypi/pytest-localserver/
made by Sebastian Rahlf, which lacks an FTP server.
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.1.0 (2016-12-09)
------------------
* First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pytest_localftpserver-0.5.1.tar.gz
.
File metadata
- Download URL: pytest_localftpserver-0.5.1.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/36.7.2 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d98cfb9d2173064b628d66cd627df52337c2ea3263f03c31b13ee0c9bed585a |
|
MD5 | 880f70dcba3c4b67026d30ccccd8c3da |
|
BLAKE2b-256 | 4c0cf38f95b8ec6a1d475c10d837961ad31784ea696efea2184b6559d32e2d34 |