一个pytest插件,它为您的测试提供一个ftp fixture
pytest-localftpserver的Python项目详细描述
=====
pytest ftp服务器
=====
图片::https://img.shields.io/pypi/v/pytest_localftpserver.svg
:目标:https://pypi.python.org/pypi/pytest_localftpserver
图片::https://img.shields.io/pypi/pyversions/pytest_localftpserver.svg
:目标:https://pypi.org/project/pytest/
…图片::https://travis-ci.org/oz123/pytest-localftpserver.svg?branch=master
:目标:https://travis ci.org/oz123/pytest localftpserver
…图片::https://ci.appveyor.com/api/projects/status/github/oz123/pytest-localftpserver?svg=true
:目标:https://ci.appveyor.com/project/oz123/pytest localftpserver/branch/master
…图片::https://readthedocs.org/projects/pytest-ftp-server/badge/?version=latest
:目标:https://pytest-ftp-server.readthedocs.io/en/latest/?徽章=最新
:alt:文档状态
…图片::https://pyup.io/repos/github/oz123/pytest localftpserver/shield.svg
:目标:https://pyup.io/repos/github/oz123/pytest localftpserver/
:alt:updates
。图片::https://coveralls.io/repos/github/oz123/pytest localftpserver/badge.svg
:目标:https://coveralls.io/github/oz123/pytest localftpserver
:alt:coverage
*免费软件:mit license
*文档:https://pytest ftp server.readthedocs.io.
使用快速启动:
==
``ftpserver``
提供一个线程ftp服务器,您可以在其中上载文件并测试ftp
功能。它具有以下属性:
*``ftp_port``-服务器端口为整数
*``anon_root``-匿名用户的根
*``ftp_home``-经过身份验证的用户的根
有关示例,请参阅测试目录或文档。
您需要'pytest env<;https://pypi.org/project/pytest env/>;`或
`tox<;https://pypi.org/project/tox/>;`
更改此插件的默认设置。
pytest cov:pytest cov的示例配置
$cat pytest.ini
[pytest]
env=
ftp-port=31175
ftp-user=benz
ftp-pass=erni1
envlist=py{27,34,35,36},
是的flake8
[testenv]
setenv=
ftp用户=benz
ftp pass=erni1
ftp home={envtmpdir}
ftp端口=31175
commands=
py.测试
==
https://pypi.python.org/pypi/pytest localserver/
由缺少ftp服务器的sebastian rahlf制作。
此包是使用cookiecutter和“audreyr/cookiecutter pypackage”项目模板创建的。
_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_` audreyr/cookiecutter pypackage`:https://github.com/audreyr/cookiecutter pypackage
===
=
=>历史
==
0.1.0(2016-12-09)
----
*pypi第一次发布。
pytest ftp服务器
=====
图片::https://img.shields.io/pypi/v/pytest_localftpserver.svg
:目标:https://pypi.python.org/pypi/pytest_localftpserver
图片::https://img.shields.io/pypi/pyversions/pytest_localftpserver.svg
:目标:https://pypi.org/project/pytest/
…图片::https://travis-ci.org/oz123/pytest-localftpserver.svg?branch=master
:目标:https://travis ci.org/oz123/pytest localftpserver
…图片::https://ci.appveyor.com/api/projects/status/github/oz123/pytest-localftpserver?svg=true
:目标:https://ci.appveyor.com/project/oz123/pytest localftpserver/branch/master
…图片::https://readthedocs.org/projects/pytest-ftp-server/badge/?version=latest
:目标:https://pytest-ftp-server.readthedocs.io/en/latest/?徽章=最新
:alt:文档状态
…图片::https://pyup.io/repos/github/oz123/pytest localftpserver/shield.svg
:目标:https://pyup.io/repos/github/oz123/pytest localftpserver/
:alt:updates
。图片::https://coveralls.io/repos/github/oz123/pytest localftpserver/badge.svg
:目标:https://coveralls.io/github/oz123/pytest localftpserver
:alt:coverage
*免费软件:mit license
*文档:https://pytest ftp server.readthedocs.io.
使用快速启动:
==
``ftpserver``
提供一个线程ftp服务器,您可以在其中上载文件并测试ftp
功能。它具有以下属性:
*``ftp_port``-服务器端口为整数
*``anon_root``-匿名用户的根
*``ftp_home``-经过身份验证的用户的根
有关示例,请参阅测试目录或文档。
您需要'pytest env<;https://pypi.org/project/pytest env/>;`或
`tox<;https://pypi.org/project/tox/>;`
更改此插件的默认设置。
pytest cov:pytest cov的示例配置
$cat pytest.ini
[pytest]
env=
ftp-port=31175
ftp-user=benz
ftp-pass=erni1
envlist=py{27,34,35,36},
是的flake8
[testenv]
setenv=
ftp用户=benz
ftp pass=erni1
ftp home={envtmpdir}
ftp端口=31175
commands=
py.测试
https://pypi.python.org/pypi/pytest localserver/
由缺少ftp服务器的sebastian rahlf制作。
此包是使用cookiecutter和“audreyr/cookiecutter pypackage”项目模板创建的。
_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_` audreyr/cookiecutter pypackage`:https://github.com/audreyr/cookiecutter pypackage
===
=
=>历史
==
0.1.0(2016-12-09)
----
*pypi第一次发布。