Beispiel #1
0
def test_load_env(valid_adapter):
    lib = Items(default_adapter=valid_adapter)

    # Called by Robot Framework listener
    lib._start_suite(None, None)

    # Work item loaded using env variables
    env = lib.current
    assert env is not None
    assert env.data["username"] == "testguy"
    def test_load_env_disable(self, adapter):
        library = Items(default_adapter=adapter, load_env=False)

        # Called by Robot Framework listener
        library._start_suite(None, None)
        assert library.current is None
Beispiel #3
0
def test_load_env_disable(valid_adapter):
    lib = Items(load_env=False, default_adapter=valid_adapter)

    # Called by Robot Framework listener
    lib._start_suite(None, None)
    assert lib.current is None