| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
ambiguous method names
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
passlib.tests
-------------
* deprecated support for unittest 1... accumulated too many backports,
planning to require unittest2 in next release.
* case_prefix renamed to shortDescription
* test case now archives & clears warning registry state in addition
to warning filter state
passlib.utils.compat
--------------------
* a bunch of the bytes-related functions were renamed for clarity
* NativeStringIO alias added
* trange alias merged into irange
|
| | |
|
| |
|
|
|
|
| |
decided that to_hash_str will always return native string,
feature of hashes being returned as unicode under python 2
is better done through a CryptContext option.
|
| |
|
|
| |
compat.u
|
| |
|
|
|
|
|
|
| |
this distinguishes the types, so that for isinstance() tests...
* 'unicode' always means the unicode type
* 'bytes' always means the bytes type
* 'str' always means the native string type
|
| | |
|
| |
|
|
|
| |
* backport of ut2's assertAlmostEquals delta kwd
* test_context uses set_file so we can always write bytes
|
| |
|
|
|
|
| |
* added private constructor Htpasswd._from_string(), will clean it up and make public in future
* most apache tests now use _from_string() so they don't have to write to fs
* tests which still require writing to fs (mainly the autoload tests) now skipped for GAE
|
| |
|
|
| |
warnings
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
* added 'encoding' kwd to Htpasswd, Htdigest constructors,
allowing user/realm encoding to be specified.
* treats file as bytes internally
* added UTs for encoding-specific behavior
* added render_bytes() util helper - py2/3 compatible replacement for using % formatting with bytes
|
| |
|
|
|
|
|
|
|
|
|
| |
=============
* restored "default" mode for set_backend()
* bugfix: HandlerCase now sets backend explicitly, incorrect backend checks were previously happening
* added UT for genhash(secret, None)
* enabled HandlerCase.supports_unicode for all hashes
* added some needed test cases revealed by coverage check
* added "pragma: no cover" for a select few branches that don't need testing
* all UTs pass, 92% coverage
|
| |
|
|
|
|
|
|
|
|
| |
========
* bugfix: test_apache now backdates mtime on files instead of time.sleep() - more reliable across OS's
* bugfix: bcrypt & md5_crypt used classmethod() on _has_backend_xxx attrs instead of classproperty()
* added backendmixin test suite to HandlerCase to detect regression of above backend bug
* added test case for CryptContext.replace()
* added setUp/cleanUp support to create_backend_case() (fixes ut test bug)
* all UTs passed
|
|
|
pass)
|