Ejemplo n.º 1
0
def test_get_all_vars(monkeypatch):
    envars = {
        'LEAPP_DEVEL_SKIP_WIP': '0',
        'LEAPP_DEVEL_SKIP_DIP': '1',
        'LEAPP_DEVEL_SKIP_RIP': '2'
    }
    monkeypatch.setattr(api, 'current_actor', CurrentActorMocked(envars))
    assert api.current_actor().configuration.leapp_env_vars == get_all_envs()
    monkeypatch.setattr(api, 'current_actor', CurrentActorMocked())
    assert api.current_actor().configuration.leapp_env_vars == get_all_envs()
Ejemplo n.º 2
0
 def __init__(self, target, binds=(), env_vars=None):
     super(IsolationType.NSPAWN, self).__init__(target=target)
     self.binds = list(binds) + ALWAYS_BIND
     self.env_vars = env_vars or get_all_envs()
Ejemplo n.º 3
0
def test_get_all_vars(monkeypatch):

    monkeypatch.setattr(api, 'current_actor', CurrentActorMocked)
    assert len(get_all_envs()) == 3