summaryrefslogtreecommitdiff
path: root/ick2/versionapi_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-02-07 18:54:13 +0200
committerLars Wirzenius <liw@liw.fi>2018-02-09 19:11:02 +0200
commit5cf3781ad4beddfab5aa7181c0990a5462ffe06f (patch)
treea50a769bc8b6cc7e31f28466002c7dc15f2433b4 /ick2/versionapi_tests.py
parent4b6fd81e121935f60f29b8314bc7c44726bf6fd7 (diff)
downloadick2-5cf3781ad4beddfab5aa7181c0990a5462ffe06f.tar.gz
Change: make all .service units be conditional on config
If the config file is missing, the unit won't start.
Diffstat (limited to 'ick2/versionapi_tests.py')
-rw-r--r--ick2/versionapi_tests.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/ick2/versionapi_tests.py b/ick2/versionapi_tests.py
index 500d7e6..143e1cc 100644
--- a/ick2/versionapi_tests.py
+++ b/ick2/versionapi_tests.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2017 Lars Wirzenius
+# Copyright (C) 2017-2018 Lars Wirzenius
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@@ -21,16 +21,15 @@ import ick2
class VersionAPITests(unittest.TestCase):
- def create_api(self):
- api = ick2.VersionAPI(None)
- return api
-
def test_returns_version_correcly(self):
+ bloburl = 'https://blobs.example.com'
api = ick2.VersionAPI(None)
+ api.set_blob_service_url(bloburl)
response = api.get_version()
self.assertEqual(
response,
{
'version': ick2.__version__,
+ 'blob_service': bloburl,
}
)