Пример #1
0
 def test_request_estable_version(self):
     """
         Test for request to stable version name
         Maybe this can be a mockup but I used to check requests and get compatability
     """
     current_stable_version = get_stable_version()
     self.assertIsNotNone(current_stable_version)
Пример #2
0
def check_new_version():
    need_upgrade = False
    try:
        if upgrader.require_upgrade():
            need_upgrade = True
    except:
        pass

    return jsonify(require_upgrade=need_upgrade,
                   current_version=upgrader.get_current_version(),
                   last_stable_version=upgrader.get_stable_version())
Пример #3
0
def check_new_version():
    need_upgrade = False
    try:
        if upgrader.require_upgrade():
            need_upgrade = True
    except:
        pass

    return jsonify(
        require_upgrade=need_upgrade,
        current_version=upgrader.get_current_version(),
        last_stable_version=upgrader.get_stable_version()
    )