Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: appengine/cr-buildbucket/test/config_test.py

Issue 2158953002: swarmbucket: add $project template parameter (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/cr-buildbucket/test/acl_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/cr-buildbucket/test/config_test.py
diff --git a/appengine/cr-buildbucket/test/config_test.py b/appengine/cr-buildbucket/test/config_test.py
index f1eca5cef9f6a4af4b88d2f2738b06dbb9f61cf7..5bdde274efc21609f42db7fe58bb15a5eebc4914 100644
--- a/appengine/cr-buildbucket/test/config_test.py
+++ b/appengine/cr-buildbucket/test/config_test.py
@@ -72,8 +72,9 @@ class ConfigTest(testing.AppengineTestCase):
project_id='chromium',
revision='deadbeef',
config_content=MASTER_TRYSERVER_CHROMIUM_LINUX_CONFIG_TEXT).put()
- cfg = config.get_bucket_async(
+ project, cfg = config.get_bucket_async(
'master.tryserver.chromium.linux').get_result()
+ self.assertEqual(project, 'chromium')
self.assertEqual(
cfg,
project_config_pb2.Bucket(
@@ -86,7 +87,7 @@ class ConfigTest(testing.AppengineTestCase):
]),
)
- self.assertIsNone(config.get_bucket_async('non.existing').get_result())
+ self.assertIsNone(config.get_bucket_async('non.existing').get_result()[0])
def test_get_buckets_async(self):
config.Bucket(
« no previous file with comments | « appengine/cr-buildbucket/test/acl_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698