factory_boy
mixer
Our great sponsors
factory_boy | mixer | |
---|---|---|
3 | 1 | |
3,402 | 929 | |
1.2% | - | |
6.9 | 0.0 | |
12 days ago | about 2 months ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
factory_boy
-
Embracing Modern Python for Web Development
Factory Boy doesn't currently support asynchronous operations, but there is an async-factory-boy extension with enough async support for most use cases. There is also an open pull request in Factory Boy with recent updates (July 2023) that will hopefully be merged soon.
-
Testing files in Python like a pro
You can use it with Faker and factory_boy (for ORM integration).
-
Five Easy to Miss PostgreSQL Query Performance Bottlenecks
When releasing a new application (or feature) I've always loaded each table in my development environments database with a few million rows. Tools like Python's Factory Boy [1] or Ruby's Factory Bot [2] make this trivial.
After the data is loaded up, start navigating through the application and it will become evident where improvements need to be made. Tools like Django Debug Toolbar [3] help expose where the bad ORM calls are or also by tailing Postgres log files.
[1] https://github.com/FactoryBoy/factory_boy
mixer
-
Django Testing Just Got So Much Easier
On top of bakery and factory boy there is https://github.com/klen/mixer
What are some alternatives?
model_mommy
PyRestTest - Python Rest Testing
aiounittest - Test python asyncio-based code with ease.
callee - Argument matchers for unittest.mock
Selenium Wire - Extends Selenium's Python bindings to give you the ability to inspect requests made by the browser.
mqtt-explorer - MQTT Explorer - MQTT Subscriber client to explore topic hierarchies
pytest-fastapi-deps - This library allows you to easily replace FastAPI dependencies in your tests. Regular mocking techniques do not work due to the inner working of FastAPI.