2019-04-30 11:44:37 +02:00
|
|
|
from . import OBSLocal
|
2017-10-19 00:23:17 -05:00
|
|
|
import unittest
|
|
|
|
|
|
|
|
|
2019-04-30 11:44:37 +02:00
|
|
|
class TestDevelProject(OBSLocal.OBSLocalTestCase):
|
2017-10-19 00:23:17 -05:00
|
|
|
script = './devel-project.py'
|
|
|
|
script_debug_osc = False
|
|
|
|
|
|
|
|
def test_list(self):
|
|
|
|
self.osc_user('staging-bot')
|
2017-10-24 18:04:30 -05:00
|
|
|
self.execute_script(['list', '--write'])
|
2017-10-19 00:23:17 -05:00
|
|
|
self.assertOutput('server:php:applications')
|
|
|
|
# TODO Assert --write worked and in file.
|
|
|
|
|
|
|
|
def test_reviews(self):
|
|
|
|
self.osc_user('staging-bot')
|
2017-10-24 18:04:30 -05:00
|
|
|
self.execute_script(['reviews'])
|
2017-10-19 00:23:17 -05:00
|
|
|
|
|
|
|
def test_requests(self):
|
|
|
|
self.osc_user('staging-bot')
|
2017-10-24 18:04:30 -05:00
|
|
|
self.execute_script(['requests'])
|