The old @pytest.yield_fixture causes
a deprecation warning:
Use @pytest.fixture instead; they are the same.
def records():
Sample code for Chapter 19 - "Dynamic attributes and properties" From the book "Fluent Python" by Luciano Ramalho (O'Reilly, 2015) http://shop.oreilly.com/product/0636920032519.do