Beispiel #1
0
def test_register_gui():
    """Registering at run-time takes precedence over those from environment"""
    
    with no_guis():
        os.environ["PYBLISHGUI"] = "second,third"
        logic.register_gui("first")

        print(logic.registered_guis())
        assert logic.registered_guis() == ["first", "second", "third"]
Beispiel #2
0
def test_register_gui():
    """Registering at run-time takes precedence over those from environment"""

    with no_guis():
        os.environ["PYBLISHGUI"] = "second,third"
        logic.register_gui("first")

        print(logic.registered_guis())
        assert logic.registered_guis() == ["first", "second", "third"]

    with no_guis():
        os.environ["PYBLISH_GUI"] = "second,third"
        logic.register_gui("first")

        print(logic.registered_guis())
        assert logic.registered_guis() == ["first", "second", "third"]