()
| 30 | Book.drop_collection() |
| 31 | |
| 32 | def init_book(): |
| 33 | return Book( |
| 34 | name="Always be closing", |
| 35 | pages=100, |
| 36 | tags=["self-help", "sales"], |
| 37 | is_published=True, |
| 38 | author_email="alec@example.com", |
| 39 | ) |
| 40 | |
| 41 | print("Doc initialization: %.3fus" % (timeit(init_book, 1000) * 10**6)) |
| 42 |
no test coverage detected