openSUSE-release-tools/tests/devel_project_tests.py
2019-04-30 14:29:16 +02:00

22 lines
586 B
Python

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'])