예제 #1
0
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
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
def cveSetUp(test):
    lobotomize_stevea()
    switch_dbuser(config.cveupdater.dbuser)
    setUp(test)
예제 #4
0
def bugNotificationSendingSetUp(test):
    lobotomize_stevea()
    switch_dbuser(config.malone.bugnotification_dbuser)
    setUp(test)
예제 #5
0
def branchscannerBugsSetUp(test):
    """Setup the user for the branch scanner tests."""
    lobotomize_stevea()
    branchscannerSetUp(test)
예제 #6
0
def lobotomizeSteveASetUp(test):
    """Call lobotomize_stevea() and standard setUp"""
    lobotomize_stevea()
    setUp(test)
예제 #7
0
def cveSetUp(test):
    lobotomize_stevea()
    switch_dbuser(config.cveupdater.dbuser)
    setUp(test, future=True)
예제 #8
0
def bugNotificationSendingSetUp(test):
    lobotomize_stevea()
    switch_dbuser(config.malone.bugnotification_dbuser)
    setUp(test, future=True)
예제 #9
0
def branchscannerBugsSetUp(test):
    """Setup the user for the branch scanner tests."""
    lobotomize_stevea()
    branchscannerSetUp(test)
예제 #10
0
def lobotomizeSteveASetUp(test):
    """Call lobotomize_stevea() and standard setUp"""
    lobotomize_stevea()
    setUp(test, future=True)