tests/devel_project: provide basic test against local OBS.
This commit is contained in:
parent
35bbaf3a66
commit
ed662be413
22
tests/devel_project_tests.py
Normal file
22
tests/devel_project_tests.py
Normal file
@ -0,0 +1,22 @@
|
||||
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')
|
||||
self.execute(['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(['reviews'])
|
||||
|
||||
@unittest.skip('#1205: devel-project: requests subcommand broken due to osc 0.160.0')
|
||||
def test_requests(self):
|
||||
self.osc_user('staging-bot')
|
||||
self.execute(['requests'])
|
Loading…
x
Reference in New Issue
Block a user