Fix flake8 formatting errors

This commit is contained in:
verdesmarald
2017-09-07 16:39:21 +10:00
committed by James Bungard
parent 7674f6b186
commit 1e66af6389
2 changed files with 4 additions and 0 deletions

View File

@@ -273,6 +273,7 @@ class TestDistribution:
"*collected 1 item*", "*collected 1 item*",
]) ])
class TestDistEach: class TestDistEach:
def test_simple(self, testdir): def test_simple(self, testdir):
testdir.makepyfile(""" testdir.makepyfile("""

View File

@@ -43,6 +43,7 @@ def test_auto_detect_cpus(testdir, monkeypatch):
config = testdir.parseconfigure("-nauto") config = testdir.parseconfigure("-nauto")
assert config.getoption('numprocesses') == 99 assert config.getoption('numprocesses') == 99
def test_boxed_with_collect_only(testdir): def test_boxed_with_collect_only(testdir):
from xdist.plugin import pytest_cmdline_main as check_options from xdist.plugin import pytest_cmdline_main as check_options
config = testdir.parseconfigure("-n1", "--boxed") config = testdir.parseconfigure("-n1", "--boxed")
@@ -57,6 +58,7 @@ def test_boxed_with_collect_only(testdir):
check_options(config) check_options(config)
assert config.option.forked assert config.option.forked
def test_dsession_with_collect_only(testdir): def test_dsession_with_collect_only(testdir):
from xdist.plugin import pytest_cmdline_main as check_options from xdist.plugin import pytest_cmdline_main as check_options
from xdist.plugin import pytest_configure as configure from xdist.plugin import pytest_configure as configure
@@ -71,6 +73,7 @@ def test_dsession_with_collect_only(testdir):
configure(config) configure(config)
assert not config.pluginmanager.hasplugin("dsession") assert not config.pluginmanager.hasplugin("dsession")
class TestDistOptions: class TestDistOptions:
def test_getxspecs(self, testdir): def test_getxspecs(self, testdir):
config = testdir.parseconfigure("--tx=popen", "--tx", "ssh=xyz") config = testdir.parseconfigure("--tx=popen", "--tx", "ssh=xyz")