<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/passlib.git/passlib/tests, branch stable</title>
<subtitle>foss.heptapod.net: python-libs/passlib
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/'/>
<entry>
<title>passlib.ext.django: refactored tests to give more granular results.</title>
<updated>2020-10-08T01:33:57+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-10-08T01:33:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=cc21426e0f7a93e5dbd2c66d9752123924a1a4dc'/>
<id>cc21426e0f7a93e5dbd2c66d9752123924a1a4dc</id>
<content type='text'>
* refactored DjangoBehaviorTest so instead of a monolothic "test_config()" method;
  there are now a bunch of different test methods.  additionally, the ones with
  loops now use TestCase.subTest() to parameter things appropriately.

  *no changes to logic of the tests*

* added TestCase.subTest() stub &amp; wrapper to make debugging subtests easier.

* added some documentation to test classes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* refactored DjangoBehaviorTest so instead of a monolothic "test_config()" method;
  there are now a bunch of different test methods.  additionally, the ones with
  loops now use TestCase.subTest() to parameter things appropriately.

  *no changes to logic of the tests*

* added TestCase.subTest() stub &amp; wrapper to make debugging subtests easier.

* added some documentation to test classes.
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.ext.django: Updated UTs to work with latest django release</title>
<updated>2020-10-08T01:33:47+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-10-08T01:33:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=a4f23dd8fed25cefc93cb257e00b16502a87dbd4'/>
<id>a4f23dd8fed25cefc93cb257e00b16502a87dbd4</id>
<content type='text'>
(should fix long-standing issue 98)

* test_ext_django:

    - Simplified "stock config" setup code.  It now gets it's "sha_rounds" value
      from the django source, so we don't have to manually update it every time
      django changes their default.  This should require less maintenance across
      minor django releases.  (Should fix issue 98, and prevent recurrence)

    - Updated tests to account for quirks in how encoded hashes are handled.
      Specifically: None, "", and invalid hashes all cause subtly different
      behaviors across django versions.  tests pass against django 1.8 - 3.1.

    - split "empty hash" test out from the loop it shared with "null hash" test,
      since the two behave differently.

* tox: expanded envlist to explicitly test a bunch more django versions
  (1.8 - 3.1); and remove some needless "django 2.x + py2" tests

* passlib.apps: reformatted django CryptContext declarations;
  added one for django 2.1 (which dropped "django_bcrypt" it's default list)

* passlib.ext.django:

    - added internal "quirks" helper as central place to track
      minor edge-case changes between django versions.

    - passlib_to_django() helper now falls back to searching hasher classes
      directly, even if patch isn't installed.  this allows it to work
      for django hashers that have been removed from django's default list.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(should fix long-standing issue 98)

* test_ext_django:

    - Simplified "stock config" setup code.  It now gets it's "sha_rounds" value
      from the django source, so we don't have to manually update it every time
      django changes their default.  This should require less maintenance across
      minor django releases.  (Should fix issue 98, and prevent recurrence)

    - Updated tests to account for quirks in how encoded hashes are handled.
      Specifically: None, "", and invalid hashes all cause subtly different
      behaviors across django versions.  tests pass against django 1.8 - 3.1.

    - split "empty hash" test out from the loop it shared with "null hash" test,
      since the two behave differently.

* tox: expanded envlist to explicitly test a bunch more django versions
  (1.8 - 3.1); and remove some needless "django 2.x + py2" tests

* passlib.apps: reformatted django CryptContext declarations;
  added one for django 2.1 (which dropped "django_bcrypt" it's default list)

* passlib.ext.django:

    - added internal "quirks" helper as central place to track
      minor edge-case changes between django versions.

    - passlib_to_django() helper now falls back to searching hasher classes
      directly, even if patch isn't installed.  this allows it to work
      for django hashers that have been removed from django's default list.
</pre>
</div>
</content>
</entry>
<entry>
<title>bugfix: passlib.tests: revert filtering PasslibSecurityWarning in general;</title>
<updated>2020-10-08T01:22:08+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-10-08T01:22:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=32a5183450a8d96f15da79f50cb6b0688f7a8f46'/>
<id>32a5183450a8d96f15da79f50cb6b0688f7a8f46</id>
<content type='text'>
some tests depend on seeing it.

(reverts change from rev be9a9121d5a7)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
some tests depend on seeing it.

(reverts change from rev be9a9121d5a7)
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.context: now raises UnknownHashError() if hash can't be identified.</title>
<updated>2020-10-07T18:46:57+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-10-07T18:46:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=7086228eec5138cd40d39e18c7a132b703d07cdc'/>
<id>7086228eec5138cd40d39e18c7a132b703d07cdc</id>
<content type='text'>
this inherits from ValueError, and has same text, so backwards compatible.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this inherits from ValueError, and has same text, so backwards compatible.
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.tests: silenced some internal warnings; fixed edge case in scrypt test;</title>
<updated>2020-10-06T14:49:22+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-10-06T14:49:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=da2546cdc6252639f1cd5bc94cb98f05389c8909'/>
<id>da2546cdc6252639f1cd5bc94cb98f05389c8909</id>
<content type='text'>
removed "gae" from tox suite (no meaningful difference from posix tests)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
removed "gae" from tox suite (no meaningful difference from posix tests)
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.tests.test_ext_django: cleaned up detection of missing django hasher backends;</title>
<updated>2020-10-06T14:48:17+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-10-06T14:48:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=f0e6cded325b73fe7a848b005da5a32d501b09aa'/>
<id>f0e6cded325b73fe7a848b005da5a32d501b09aa</id>
<content type='text'>
and some related helper methods.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and some related helper methods.
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.utils: add thread lock to fix some UT failures.</title>
<updated>2020-10-06T01:26:25+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-10-06T01:26:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=6badf316805b188c92165e342ca88ce3be9a96db'/>
<id>6badf316805b188c92165e342ca88ce3be9a96db</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.hash: added ldap_salted_sha256 &amp; ldap_salted_512 (issue 124)</title>
<updated>2020-10-06T01:14:41+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-10-06T01:14:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=3f1ad211d9499f5c36e9cc90c888c6e0da50ab3c'/>
<id>3f1ad211d9499f5c36e9cc90c888c6e0da50ab3c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.handlers: cases where crypt() returns malformed hash</title>
<updated>2020-10-06T01:14:03+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-10-06T01:14:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=a2809fd98ed58eb006d204b05cc1519bdf1b12de'/>
<id>a2809fd98ed58eb006d204b05cc1519bdf1b12de</id>
<content type='text'>
now return a single unified InternalBackendError() class,
instead of AssertionError.

This change has a couple of parts:

* assert statements replaced with permanent checks,
  since crypt() is unpredictable enough that we need to have this always on,
  even if production runs code in "-O2" mode.

* added debug_only_repr() helper which allows including sensitive stuff
  like salts &amp; hash digests within error tracebacks -- will only do so
  when global flag is enabled; and that's currently only set by unittest suite.

* added new InternalBackendError() exception class (a RuntimeError subclass);
  which is raised instead of an AssertionError.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
now return a single unified InternalBackendError() class,
instead of AssertionError.

This change has a couple of parts:

* assert statements replaced with permanent checks,
  since crypt() is unpredictable enough that we need to have this always on,
  even if production runs code in "-O2" mode.

* added debug_only_repr() helper which allows including sensitive stuff
  like salts &amp; hash digests within error tracebacks -- will only do so
  when global flag is enabled; and that's currently only set by unittest suite.

* added new InternalBackendError() exception class (a RuntimeError subclass);
  which is raised instead of an AssertionError.
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.tests: silence some warnings, fix some MissingBackendError messages</title>
<updated>2020-10-03T19:18:23+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-10-03T19:18:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=b252bf6b0ecfda46d81bb29b530b33466cec3cef'/>
<id>b252bf6b0ecfda46d81bb29b530b33466cec3cef</id>
<content type='text'>
* tests now filter out some passlib deprecation warnings

* bugfix: @doesnt_require_backend() decorator (rev XXX) now silences
  MissingBackendError exceptions thrown during HandlerCase.setUp()

* simplified some monkeypatching within test_registry
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests now filter out some passlib deprecation warnings

* bugfix: @doesnt_require_backend() decorator (rev XXX) now silences
  MissingBackendError exceptions thrown during HandlerCase.setUp()

* simplified some monkeypatching within test_registry
</pre>
</div>
</content>
</entry>
</feed>
