Skip to content

Fix deprecation warnings #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 24, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions pytest_cloud/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def pytest_addoption(parser):
group.addoption(
"--cloud-python",
help="python executable name to be used on the remote test nodes."
"Default is the executable used on the master.", type='string', action="store",
"Default is the executable used on the master.", type=str, action="store",
dest='cloud_python', metavar="NAME", default='python{0}.{1}'.format(*sys.version_info))
group._addoption(
'--cloud-chdir',
Expand All @@ -95,31 +95,31 @@ def pytest_addoption(parser):
help="relative path on remote node to run tests in. Default is pytest_<username>_<current_folder_name>")
group.addoption(
"--cloud-nodes",
help="space-separated test node list to use for distributed testing", type='string', action=NodesAction,
help="space-separated test node list to use for distributed testing", type=str, action=NodesAction,
dest='cloud_nodes', metavar="'USER@HOST", default=[])
group.addoption(
"--cloud-node",
help="test node to use for distributed testing", type='string', action="append",
help="test node to use for distributed testing", type=str, action="append",
dest='cloud_nodes', metavar="USER@HOST", default=[])
group.addoption(
"--cloud-virtualenv-path",
help="relative path to the virtualenv to be used on the remote test nodes.", type='string', action="store",
help="relative path to the virtualenv to be used on the remote test nodes.", type=str, action="store",
dest='cloud_virtualenv_path', metavar="PATH", default=get_virtualenv_path())
group.addoption(
"--cloud-mem-per-process",
help="amount of memory roughly needed for test process, in megabytes", type='int', action="store",
help="amount of memory roughly needed for test process, in megabytes", type=int, action="store",
dest='cloud_mem_per_process', metavar="NUMBER", default=None)
group.addoption(
"--cloud-max-processes",
help="maximum number of processes per test node", type='int', action="store",
help="maximum number of processes per test node", type=int, action="store",
dest='cloud_max_processes', metavar="NUMBER", default=None)
group.addoption(
"--cloud-rsync-max-processes",
help="maximum number of rsync processes", type='int', action="store",
help="maximum number of rsync processes", type=int, action="store",
dest='cloud_rsync_max_processes', metavar="NUMBER", default=None)
group.addoption(
"--cloud-rsync-bandwidth-limit",
help="maximum number of processes per test node", type='int', action="store",
help="maximum number of processes per test node", type=int, action="store",
dest='cloud_rsync_bandwidth_limit', metavar="NUMBER", default=10000)
parser.addoption(
"--cloud-rsync-cipher",
Expand Down