Ejemplo n.º 1
0
def test_module_proxy_plugin_call_another_module_kwarg(fake_ds_class,
                                                       fake_ds_modules):
    ds_inst = fake_ds_class()
    DSModuleProxy.populate_with_proxies(ds_inst, ds_inst,
                                        os.path.basename(fake_ds_modules))
    assert ds_inst.plugin.automember.calling_repl_with_kwarg1() == 1
    assert ds_inst.plugin.automember.calling_repl_with_kwarg2() == 2
Ejemplo n.º 2
0
def test_module_proxy_plugin_call_another_module_kwarg(fake_ds_class,
                                                       fake_ds_modules):
    ds_inst = fake_ds_class()
    DSModuleProxy.populate_with_proxies(ds_inst, ds_inst,
                                        os.path.basename
                                        (fake_ds_modules))
    assert ds_inst.plugin.automember.calling_repl_with_kwarg1() == 1
    assert ds_inst.plugin.automember.calling_repl_with_kwarg2() == 2
Ejemplo n.º 3
0
def test_module_proxy_plugin_call_with_all(fake_ds_class, fake_ds_modules):
    ds_inst = fake_ds_class()
    DSModuleProxy.populate_with_proxies(ds_inst, ds_inst,
                                        os.path.basename(fake_ds_modules))
    assert ds_inst.plugin.automember.with_all(0, 3, 2, 1) == (1, 7, 5, 3)
Ejemplo n.º 4
0
def test_module_proxy_plugin_call_ds_method(fake_ds_class, fake_ds_modules):
    ds_inst = fake_ds_class()
    DSModuleProxy.populate_with_proxies(ds_inst, ds_inst,
                                        os.path.basename(fake_ds_modules))
    assert ds_inst.plugin.automember.calling_ds_method(2) == (ds_inst, 1, 2)
Ejemplo n.º 5
0
def test_module_proxy_plugin_fun_with_one_arg(fake_ds_class, fake_ds_modules):
    ds_inst = fake_ds_class()
    DSModuleProxy.populate_with_proxies(ds_inst, ds_inst,
                                        os.path.basename(fake_ds_modules))
    assert ds_inst.plugin.automember.with_one_arg(2) == (ds_inst, 2)
Ejemplo n.º 6
0
def test_module_proxy_fun_with_one_arg(fake_ds_class, fake_ds_modules):
    ds_inst = fake_ds_class()
    DSModuleProxy.populate_with_proxies(ds_inst, ds_inst,
                                        os.path.basename(fake_ds_modules))
    assert ds_inst.repl.with_one_arg(1) == (ds_inst, 1)
Ejemplo n.º 7
0
def test_module_proxy_plugin_call_with_all(fake_ds_class, fake_ds_modules):
    ds_inst = fake_ds_class()
    DSModuleProxy.populate_with_proxies(ds_inst, ds_inst,
                                        os.path.basename
                                        (fake_ds_modules))
    assert ds_inst.plugin.automember.with_all(0, 3, 2, 1) == (1, 7, 5, 3)
Ejemplo n.º 8
0
def test_module_proxy_plugin_call_ds_method(fake_ds_class, fake_ds_modules):
    ds_inst = fake_ds_class()
    DSModuleProxy.populate_with_proxies(ds_inst, ds_inst,
                                        os.path.basename(fake_ds_modules))
    assert ds_inst.plugin.automember.calling_ds_method(2) == (ds_inst, 1, 2)
Ejemplo n.º 9
0
def test_module_proxy_plugin_fun_with_one_arg(fake_ds_class, fake_ds_modules):
    ds_inst = fake_ds_class()
    DSModuleProxy.populate_with_proxies(ds_inst, ds_inst,
                                        os.path.basename(fake_ds_modules))
    assert ds_inst.plugin.automember.with_one_arg(2) == (ds_inst, 2)
Ejemplo n.º 10
0
def test_module_proxy_fun_with_one_arg(fake_ds_class, fake_ds_modules):
    ds_inst = fake_ds_class()
    DSModuleProxy.populate_with_proxies(ds_inst, ds_inst,
                                        os.path.basename(fake_ds_modules))
    assert ds_inst.repl.with_one_arg(1) == (ds_inst, 1)