diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-07-21 11:45:29 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-08-03 21:06:50 +0300 |
commit | 7a6bc2f7749c10c1d3344ea0196e81ae95b7f0d7 (patch) | |
tree | e52472ac9665bc21886ccf27b7a79e76079d6afe /ick2/projectapi_tests.py | |
parent | 4f2207571928dc685102e3b3ff55e79cd3d46b6d (diff) | |
download | ick2-7a6bc2f7749c10c1d3344ea0196e81ae95b7f0d7.tar.gz |
Add: TokenGetter
Diffstat (limited to 'ick2/projectapi_tests.py')
-rw-r--r-- | ick2/projectapi_tests.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ick2/projectapi_tests.py b/ick2/projectapi_tests.py index f8b3c2a..bdb58d1 100644 --- a/ick2/projectapi_tests.py +++ b/ick2/projectapi_tests.py @@ -20,6 +20,12 @@ import unittest import ick2 +class DummyTokenGetter: + + def get_token(self): + return 'DUMMY.TOKEN' + + class ProjectAPITests(unittest.TestCase): def setUp(self): @@ -29,7 +35,10 @@ class ProjectAPITests(unittest.TestCase): return ick2.ProjectAPI(self.state) def create_pipeline_api(self): - return ick2.PipelineAPI(self.state) + getter = DummyTokenGetter() + api = ick2.PipelineAPI(self.state) + api.set_token_getter(getter) + return api def test_has_not_projects_initially(self): api = self.create_api() |