コード例 #1
0
ファイル: test_doc.py プロジェクト: vitaminmoo/unnaturalcode
def uploaderBugsSetUp(test):
    """Set up a test suite using the 'uploader' db user.

    Some aspects of the bug tracker are being used by the Soyuz uploader.
    In order to test that these functions work as expected from the uploader,
    we run them using the same db user used by the uploader.
    """
    lobotomize_stevea()
    test_dbuser = config.uploader.dbuser
    switch_dbuser(test_dbuser)
    setUp(test)
    test.globs["test_dbuser"] = test_dbuser
コード例 #2
0
ファイル: test_doc.py プロジェクト: pombredanne/launchpad-3
def uploaderBugsSetUp(test):
    """Set up a test suite using the 'uploader' db user.

    Some aspects of the bug tracker are being used by the Soyuz uploader.
    In order to test that these functions work as expected from the uploader,
    we run them using the same db user used by the uploader.
    """
    lobotomize_stevea()
    test_dbuser = config.uploader.dbuser
    switch_dbuser(test_dbuser)
    setUp(test, future=True)
    test.globs['test_dbuser'] = test_dbuser
コード例 #3
0
ファイル: test_doc.py プロジェクト: vitaminmoo/unnaturalcode
def cveSetUp(test):
    lobotomize_stevea()
    switch_dbuser(config.cveupdater.dbuser)
    setUp(test)
コード例 #4
0
ファイル: test_doc.py プロジェクト: vitaminmoo/unnaturalcode
def bugNotificationSendingSetUp(test):
    lobotomize_stevea()
    switch_dbuser(config.malone.bugnotification_dbuser)
    setUp(test)
コード例 #5
0
ファイル: test_doc.py プロジェクト: vitaminmoo/unnaturalcode
def branchscannerBugsSetUp(test):
    """Setup the user for the branch scanner tests."""
    lobotomize_stevea()
    branchscannerSetUp(test)
コード例 #6
0
ファイル: test_doc.py プロジェクト: vitaminmoo/unnaturalcode
def lobotomizeSteveASetUp(test):
    """Call lobotomize_stevea() and standard setUp"""
    lobotomize_stevea()
    setUp(test)
コード例 #7
0
ファイル: test_doc.py プロジェクト: pombredanne/launchpad-3
def cveSetUp(test):
    lobotomize_stevea()
    switch_dbuser(config.cveupdater.dbuser)
    setUp(test, future=True)
コード例 #8
0
ファイル: test_doc.py プロジェクト: pombredanne/launchpad-3
def bugNotificationSendingSetUp(test):
    lobotomize_stevea()
    switch_dbuser(config.malone.bugnotification_dbuser)
    setUp(test, future=True)
コード例 #9
0
ファイル: test_doc.py プロジェクト: pombredanne/launchpad-3
def branchscannerBugsSetUp(test):
    """Setup the user for the branch scanner tests."""
    lobotomize_stevea()
    branchscannerSetUp(test)
コード例 #10
0
ファイル: test_doc.py プロジェクト: pombredanne/launchpad-3
def lobotomizeSteveASetUp(test):
    """Call lobotomize_stevea() and standard setUp"""
    lobotomize_stevea()
    setUp(test, future=True)