miki725 / alchemy-mock

SQLAlchemy mock helpers.
Other
82 stars 15 forks source link

Use chain.from_iterable in mocking.py #34

Open cool-RR opened 4 years ago

cool-RR commented 4 years ago

This is a faster and more idiomatic way of using itertools.chain. Instead of computing all the items in the iterable and storing them in memory, they are computed one-by-one and never stored as a huge list. This can save on both runtime and memory space.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 3bbc0d45558a593eb27fcb24cb8295abfe5a0f0c on cool-RR:patch-1 into f8af8881b214e154131efe68bd2fd4083c84e066 on miki725:master.

cool-RR commented 4 years ago

Hmm, I think that the CI failure is not related to my change.