Skip to main content

A PyTest plugin which provides an FTP fixture for your tests

Project description

PyTest FTP Server

.. image::

.. image::

.. image::

.. image::

.. image::
:alt: Documentation Status

.. image::
:alt: Updates

.. image::
:alt: Coverage

A PyTest plugin which provides an FTP fixture for your tests

* Free software: MIT license
* Documentation:

Usage Quickstart:

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 <>`_ or
`tox <>`_
to change the default settings of this plugin.
Sample config for pytest-cov::

$ cat pytest.ini
env =

Sample config for Tox::

$ cat tox.ini
envlist = py{27,34,35,36}, flake8

setenv =
FTP_USER = benz
FTP_PASS = erni1
FTP_HOME = {envtmpdir}
FTP_PORT = 31175
commands =
py.test tests


This package was inspired by,
made by Sebastian Rahlf, which lacks an FTP server.

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter:
.. _`audreyr/cookiecutter-pypackage`:


0.1.0 (2016-12-09)

* First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pytest_localftpserver-0.5.1.tar.gz (34.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page