-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1117] Mock ckan.model in user_name_validator() tests
Now that user_name_validator() has been refactored to call model.User.get() instead of doing its own SQLAlchemy (commit c6b953), it's really easy to mock ckan.model in the user_name_validator() unit tests by just mocking the single method ckan.model.User.get(). This means the user_name_validator() unit tests no longer touch the disk or db or bring in ckan.model.
- Loading branch information
Sean Hammond
committed
Jul 26, 2013
1 parent
c6b9534
commit 93d0d81
Showing
1 changed file
with
29 additions
and
27 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