Beispiel #1
0
def session():
    s = Session()
    # Snapshot which can be referenced by name
    other_name = s.init_snapshot(join(_this_dir, 'snapshots',
                                      'fact_snapshot2'))
    # Current snapshot
    name = s.init_snapshot(join(_this_dir, 'snapshots', 'fact_snapshot'))
    yield s
    s.delete_snapshot(name)
    s.delete_snapshot(other_name)
Beispiel #2
0
def session():
    s = Session()
    # Snapshot which can be referenced by name
    other_name = s.init_snapshot(
        join(_this_dir, "snapshots", "fact_snapshot2"), _PREVIOUS_SNAPSHOT)
    # Current snapshot
    name = s.init_snapshot(join(_this_dir, "snapshots", "fact_snapshot"),
                           _CURRENT_SNAPSHOT)
    yield s
    s.delete_snapshot(name)
    s.delete_snapshot(other_name)
Beispiel #3
0
def session_fail():
    s = Session()
    name = s.init_snapshot(join(_this_dir, "snapshots", "asserts_fail"))
    yield s
    s.delete_snapshot(name)
Beispiel #4
0
def session_fail():
    s = Session()
    name = s.init_snapshot(join(_this_dir, 'snapshots', 'asserts_fail'))
    yield s
    s.delete_snapshot(name)
Beispiel #5
0
def session():
    s = Session()
    name = s.init_snapshot(join(_this_dir, 'facts', 'fact_snapshot'))
    yield s
    s.delete_snapshot(name)