Re-enable test_no_job_project
Minimal changes are needed, just translation of the old layout to new
and tenant API differences.
Change-Id: I3563fd1998dcc16426d665d50e26644b45198be0
Story: 2000773
Task: 3429
diff --git a/tests/test_scheduler.py b/tests/test_scheduler.py
index 8ae2213..b9131a0 100755
--- a/tests/test_scheduler.py
+++ b/tests/test_scheduler.py
@@ -1963,7 +1963,6 @@
self.assertEqual(A.data['status'], 'MERGED')
self.assertEqual(A.reported, 2)
- @skip("Disabled for early v3 development")
def test_no_job_project(self):
"Test that reports with no jobs don't get sent"
A = self.fake_gerrit.addFakeChange('org/no-jobs-project',
@@ -1975,7 +1974,8 @@
self.assertEqual(A.reported, False)
# Check queue is empty afterwards
- check_pipeline = self.sched.layout.pipelines['check']
+ tenant = self.sched.abide.tenants.get('tenant-one')
+ check_pipeline = tenant.layout.pipelines['check']
items = check_pipeline.getAllItems()
self.assertEqual(len(items), 0)