Esempio n. 1
0
def clientsPower(app):
    """A dictionary of client fixtures for the power users.

    Keyed by user (eppn), the values are corresponding client fixtures.
    """

    return {user: makeClient(app, user) for user in POWER_USERS}
Esempio n. 2
0
def clientsReviewer(app):
    """A dictionary of client fixtures for the reviewer users.

    Keyed by user (eppn), the values are corresponding client fixtures.
    """

    return {user: makeClient(app, user) for user in ("expert", "final")}
Esempio n. 3
0
def clientsMy(app):
    """A dictionary of client fixtures for the owner/editor users.

    Keyed by user (eppn), the values are corresponding client fixtures.
    """

    return {user: makeClient(app, user) for user in ("owner", "editor")}
Esempio n. 4
0
def clientsNamed(app):
    """A dictionary of client fixtures for all authenticated users.

    Keyed by user (eppn), the values are corresponding client fixtures.
    """

    return {user: makeClient(app, user) for user in NAMED_USERS}
Esempio n. 5
0
def clients(app):
    """A dictionary of client fixtures for each user.

    Keyed by user (eppn), the values are corresponding client fixtures.

    This comes in handy to pass to tests that want to perform the same
    action on behalf of the different users.
    """

    return {user: makeClient(app, user) for user in USERS}
Esempio n. 6
0
def clientRoot(app):
    return makeClient(app, "root")
Esempio n. 7
0
def clientSystem(app):
    return makeClient(app, "system")
Esempio n. 8
0
def clientOffice(app):
    return makeClient(app, "office")
Esempio n. 9
0
def clientOwner(app):
    return makeClient(app, "owner")
Esempio n. 10
0
def clientEditor(app):
    return makeClient(app, "editor")
Esempio n. 11
0
def clientMycoord(app):
    return makeClient(app, "mycoord")
Esempio n. 12
0
def clientFinal(app):
    return makeClient(app, "final")
Esempio n. 13
0
def clientExpert(app):
    return makeClient(app, "expert")
Esempio n. 14
0
def clientCoord(app):
    return makeClient(app, "coord")
Esempio n. 15
0
def clientAuth(app):
    return makeClient(app, "auth")
Esempio n. 16
0
def clientPublic(app):
    return makeClient(app, "public")