def test_solr_env(global_test_assembler):
    """
    Pytest fixture that mimics a fuller Solr environment one might set
    up using a global assembler, to serve as base-line test data for
    a suite (module) of related tests.
    """
    assembler = global_test_assembler
    gens = assembler.gen_factory
    loc_recs = assembler.make('location', 10)
    item_recs = assembler.make('item', 100,
        location_code=gens.choice([r['code'] for r in loc_recs])
    )
    assembler.save_all()
    return assembler