issue #409: name-prefix stubs so they can be added to PATH

Allows us to reference them from playbooks easily.
issue260
David Wilson 6 years ago
parent 5b916fc556
commit 51658fdd66

@ -9,7 +9,7 @@ import testlib
class ConstructorTest(testlib.RouterMixin, unittest2.TestCase):
def test_okay(self):
docker_path = testlib.data_path('stubs/docker.py')
docker_path = testlib.data_path('stubs/stub-docker.py')
context = self.router.docker(
container='container_name',
docker_path=docker_path,

@ -13,7 +13,7 @@ def has_subseq(seq, subseq):
class ConstructorTest(testlib.RouterMixin, testlib.TestCase):
lxc_attach_path = testlib.data_path('stubs/lxc-attach.py')
lxc_attach_path = testlib.data_path('stubs/stub-lxc-attach.py')
def test_okay(self):
context = self.router.lxc(

@ -11,7 +11,7 @@ import testlib
class ConstructorTest(testlib.RouterMixin, testlib.TestCase):
def test_okay(self):
lxc_path = testlib.data_path('stubs/lxc.py')
lxc_path = testlib.data_path('stubs/stub-lxc.py')
context = self.router.lxd(
container='container_name',
lxc_path=lxc_path,

@ -22,7 +22,7 @@ class StubSshMixin(testlib.RouterMixin):
return self.router.ssh(
hostname='hostname',
username='mitogen__has_sudo',
ssh_path=testlib.data_path('stubs/ssh.py'),
ssh_path=testlib.data_path('stubs/stub-ssh.py'),
**kwargs
)
finally:
@ -34,7 +34,7 @@ class ConstructorTest(testlib.RouterMixin, unittest2.TestCase):
context = self.router.ssh(
hostname='hostname',
username='mitogen__has_sudo',
ssh_path=testlib.data_path('stubs/ssh.py'),
ssh_path=testlib.data_path('stubs/stub-ssh.py'),
)
#context.call(mitogen.utils.log_to_file, '/tmp/log')
#context.call(mitogen.utils.disable_site_packages)

Loading…
Cancel
Save