openSUSE-release-tools/tests/devel_project_tests.py

22 lines
586 B
Python
Raw Normal View History

from . import OBSLocal
import unittest
class TestDevelProject(OBSLocal.OBSLocalTestCase):
script = './devel-project.py'
script_debug_osc = False
def test_list(self):
self.osc_user('staging-bot')
self.execute_script(['list', '--write'])
self.assertOutput('server:php:applications')
# TODO Assert --write worked and in file.
def test_reviews(self):
self.osc_user('staging-bot')
self.execute_script(['reviews'])
def test_requests(self):
self.osc_user('staging-bot')
self.execute_script(['requests'])