forked from openstack/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase test coverage of swift/common/db.py
The most low hanging fruit is _preallocate(). As it turns out, we never excercise the calculations because we never give it a file that exists. This version uses mock.patch everywhere. Change-Id: I5df03aff295d2a1bca252a02b3985a6bc3eecb26
- Loading branch information
Showing
1 changed file
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters