Ejemplo n.º 1
0
def subdocument():
    """Return EphemeralDocument with a subdocument."""
    return EphemeralDocument({
        '_id': 1,
        'hello': 'there',
        'mighty': 'duck',
        'and': {
            'the': 'drake'
        }
    })
Ejemplo n.º 2
0
def subdocument(db_type):
    """Return EphemeralDocument with a subdocument."""
    if db_type != "ephemeraldb":
        pytest.skip("ephemeraldb test only")
    yield EphemeralDocument({
        "_id": 1,
        "hello": "there",
        "mighty": "duck",
        "and": {
            "the": "drake"
        }
    })
Ejemplo n.º 3
0
def document():
    """Return EphemeralDocument."""
    return EphemeralDocument({'_id': 1, 'hello': 'there', 'mighty': 'duck'})
Ejemplo n.º 4
0
def document(db_type):
    """Return EphemeralDocument."""
    if db_type != "ephemeraldb":
        pytest.skip("ephemeraldb test only")
    yield EphemeralDocument({"_id": 1, "hello": "there", "mighty": "duck"})