Esempio n. 1
0
import os
import sys
import time
import errno


import esky
import esky.tests
import esky.util

ESKY_CONTROL_DIR = esky.util.ESKY_CONTROL_DIR

#  Test that the frozen app is actually working
import eskytester
eskytester.yes_i_am_working()
eskytester.yes_my_deps_are_working()
eskytester.yes_my_data_is_installed()

assert sys.frozen
assert __name__ == "__main__"
app = esky.tests.TestableEsky(sys.executable,"http://localhost:8000/dist/")
assert app.name == "eskytester"
assert app.active_version == "0.1"
assert app.version == "0.1"
assert app.find_update() == "0.3"
assert os.path.isfile(eskytester.script_path(app,"script1"))

#  Test that the script is executed with sensible globals etc, so
#  it can create classes and other "complicated" things
class ATestClass(object):
Esempio n. 2
0
import os
import sys
import time
import errno

import esky
import esky.tests
import esky.util

ESKY_CONTROL_DIR = esky.util.ESKY_CONTROL_DIR
ESKY_APPDATA_DIR = esky.util.ESKY_APPDATA_DIR

#  Test that the frozen app is actually working
import eskytester

eskytester.yes_i_am_working()
eskytester.yes_my_deps_are_working()
eskytester.yes_my_data_is_installed()

assert sys.frozen
assert __name__ == "__main__"
app = esky.tests.TestableEsky(sys.executable, "http://localhost:8000/dist/")
assert app.name == "eskytester"
assert app.active_version == "0.1"
assert app.version == "0.1"
assert app.find_update() == "0.3"
assert os.path.isfile(eskytester.script_path(app, "script1"))


#  Test that the script is executed with sensible globals etc, so
#  it can create classes and other "complicated" things