2017-10-19 00:23:17 -05:00
|
|
|
from OBSLocal import OBSLocalTestCase
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
|
|
|
|
class TestDevelProject(OBSLocalTestCase):
|
|
|
|
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'])
|