Commit Graph

11 Commits

Author SHA1 Message Date
Chad Whitacre 1217c9eea2 Fix regression in test name :o) 2016-11-21 19:46:42 -05:00
Chad Whitacre 7588c1ca2b Rename .one to .first 2016-11-21 19:41:22 -05:00
Chad Whitacre fafaca6a96 Fix tests for raising one(default) 2016-11-21 19:33:31 -05:00
Chad Whitacre 1d1d423245 Raise default if it's an exception 2016-11-21 19:33:30 -05:00
Chad Whitacre e7da94b249 Add a .one method to RecordCollections
It's a common use-case to want one and only one result from a query.
This adds a .one method to RecordCollections that is parallel to .all.
2016-11-21 19:33:00 -05:00
kennethreitz 9e65833117 Merge pull request #55 from Brobin/master
Retrieve attributes using super instead of hard-coding
2016-11-21 19:28:26 -05:00
Brian Hammond e46cacdd82 Not using pytest.raises anymore so no need to import pytest 2016-02-29 10:43:51 -05:00
Brian Hammond 67deca59a3 Add support for transactions 2016-02-29 10:39:13 -05:00
Brobin 5fe76db02a add test for Record __dir__ method 2016-02-23 15:54:40 -06:00
kennethreitz ab41e3ff51 RecordCollection 2016-02-13 01:57:16 -05:00
Harold Cooper fa3600df20 add regression tests for issues #13, #15, and the not-yet-fixed #34 2016-02-11 01:01:58 -05:00