def test_frozen_and_executable_set(self): setattr(sys, "frozen", True) setattr(sys, "executable", "plop") path = resource_filename("tutu") assert path.endswith("tutu")
def test_frozen_set_to_none(self): setattr(sys, "frozen", None) setattr(sys, "executable", "plop") path = resource_filename("titi") assert path.endswith("titi")
def test_executable_set_none(self): setattr(sys, "frozen", True) setattr(sys, "executable", None) path = resource_filename("toto") assert path.endswith("toto")