Exemple #1
0
    def test_frozen_and_executable_set(self):
        setattr(sys, "frozen", True)
        setattr(sys, "executable", "plop")

        path = resource_filename("tutu")

        assert path.endswith("tutu")
Exemple #2
0
    def test_frozen_set_to_none(self):
        setattr(sys, "frozen", None)
        setattr(sys, "executable", "plop")

        path = resource_filename("titi")

        assert path.endswith("titi")
Exemple #3
0
    def test_executable_set_none(self):
        setattr(sys, "frozen", True)
        setattr(sys, "executable", None)

        path = resource_filename("toto")

        assert path.endswith("toto")