mirror of https://github.com/DJ2LS/FreeDATA.git
adjusted server api version
parent
e4d2bc0d4c
commit
c3c93d9956
|
@ -33,7 +33,7 @@ from schedule_manager import ScheduleManager
|
|||
CONFIG_ENV_VAR = 'FREEDATA_CONFIG'
|
||||
DEFAULT_CONFIG_FILE = 'config.ini'
|
||||
MODEM_VERSION = "0.15.9-alpha.1"
|
||||
API_VERSION = 1
|
||||
API_VERSION = 2
|
||||
LICENSE = 'GPL3.0'
|
||||
DOCUMENTATION_URL = 'https://wiki.freedata.app'
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ class TestIntegration(unittest.TestCase):
|
|||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
#cmd = "flask --app freedata_server/server run"
|
||||
cmd = "python3 freedata_server/server.py"
|
||||
my_env = os.environ.copy()
|
||||
my_env["FREEDATA_CONFIG"] = "freedata_server/config.ini.example"
|
||||
|
@ -31,7 +30,7 @@ class TestIntegration(unittest.TestCase):
|
|||
self.assertEqual(r.status_code, 200)
|
||||
|
||||
data = r.json()
|
||||
self.assertEqual(data['api_version'], 1)
|
||||
self.assertEqual(data['api_version'], 2)
|
||||
|
||||
def test_config_get(self):
|
||||
r = requests.get(self.url + '/config')
|
||||
|
|
Loading…
Reference in New Issue