コード例 #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}
コード例 #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")}
コード例 #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")}
コード例 #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}
コード例 #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}
コード例 #6
0
def clientRoot(app):
    return makeClient(app, "root")
コード例 #7
0
def clientSystem(app):
    return makeClient(app, "system")
コード例 #8
0
def clientOffice(app):
    return makeClient(app, "office")
コード例 #9
0
def clientOwner(app):
    return makeClient(app, "owner")
コード例 #10
0
def clientEditor(app):
    return makeClient(app, "editor")
コード例 #11
0
def clientMycoord(app):
    return makeClient(app, "mycoord")
コード例 #12
0
def clientFinal(app):
    return makeClient(app, "final")
コード例 #13
0
def clientExpert(app):
    return makeClient(app, "expert")
コード例 #14
0
def clientCoord(app):
    return makeClient(app, "coord")
コード例 #15
0
def clientAuth(app):
    return makeClient(app, "auth")
コード例 #16
0
def clientPublic(app):
    return makeClient(app, "public")