summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2020-09-29Blackify for v20.8b1Steve Piercy
2020-07-12Run isort 5.x across code baseBert JW Regeer
2020-07-02add tests and docsÉric Araujo
2020-06-22first shot for #1602Éric Araujo
2020-06-03Handle non string object passed to aslist methodThibault Ravera
2020-05-28Revert "Fix tests that depend on the test runner"Bert JW Regeer
This reverts commit 72eca2f8e82f1af20e433218719d99e7627d5650.
2020-05-07merge masterÉric Araujo
2020-05-06Remove unnecessary coding linesBert JW Regeer
2020-05-06set() -> {}Bert JW Regeer
2020-05-06Fix tests that depend on the test runnerBert JW Regeer
2020-05-06add test to validate doc assertionÉric Araujo
2020-05-04support multiple values for header predicateÉric Araujo
2020-05-04expand testing for predicate textsÉric Araujo
2020-04-19Replace deprecated unittest alias assertEquals with assertEqualSergey Maranchuk
https://docs.python.org/3/library/unittest.html#deprecated-aliases
2020-04-19remove __unicode__ methodSergey Maranchuk
2020-04-19invoke super() without argumentsSergey Maranchuk
2020-04-19rename __nonzero__() to __bool__()Sergey Maranchuk
2020-04-17inheriting from `object` not necessary in py3Sergey Maranchuk
2020-01-16Merge branch 'master' into move-acl-security-to-authorizationMichael Merickel
2020-01-12move doc references from pyramid.security to pyramid.authorizationMichael Merickel
2020-01-09Merge branch 'master' into security-docsMichael Merickel
2020-01-09fix lintMichael Merickel
2020-01-09fix paradigm to avoid incorrect usagesMichael Merickel
It's almost impossible to create a decorator that works on both methods and functions, but more importantly the original approach was sharing a cache across instances of the policy. It needed to be local to the policy instance, but shared across requests. The new example demonstrates that. The cache is also much more flexible in its usage patterns now.
2020-01-08add a RequestLocalCache classMichael Merickel
2020-01-08invoke finished callbacks in prepare/bootstrap closersMichael Merickel
2020-01-05allow overriding synthesized propertiesMichael Merickel
2020-01-03Merge branch 'master' into security-docsMichael Merickel
2019-12-30rename identify(request) to authenticated_identity(request)Michael Merickel
2019-12-27isortMichael Merickel
2019-12-24security policy docs and legacy policy improvementsMichael Merickel
- Added `set_security_policy`` to more places in the docs. - Ensure that the authn/authz policies are not used at all if the legacy policy is not in effect to avoid edge cases where the code would skip the security policy and use the authn/authz policy on accident. - Change deprecation warnings in code to reference the docs by name instead of by URL.
2019-12-23Merge branch 'master' into luhn-authenticated-useridMichael Merickel
2019-12-23add coverage tests for deprecation warningsMichael Merickel
2019-12-15Fix coverage.Theron Luhn
2019-12-15Fix coverage.Theron Luhn
2019-12-15Revert "Bring back identity into permits."Theron Luhn
This reverts commit 2e06fa414412688dc3b7e0b422b0fc0b96ec882f.
2019-12-15fix failing testMichael Merickel
2019-12-15fix lintMichael Merickel
2019-12-15handle a missing content negotiation case where the unencoded option is not ↵Michael Merickel
available and the client requests an encoded variant that doesn't exist
2019-12-14Fix coverage.Theron Luhn
2019-12-14Fix coverage.Theron Luhn
2019-12-14Bring back identity into permits.Theron Luhn
2019-12-14Remove unnecessary TODO statement.Theron Luhn
2019-12-14Fix couple final view tests.Theron Luhn
2019-12-14Fix tests for `DummySecurityPolicy`.Theron Luhn
2019-12-14Raise error on kwargs in `LegacySecurityPolicy.forget`.Theron Luhn
2019-12-14Don't test request.authenticated_userid stringifies the result.Theron Luhn
2019-12-14Remove failing tests using threadlocal request.Theron Luhn
It shoud be okay to remove because threadlocal support was removed from the security implementation. However, *I don't understand why they started failing.* In master, `get_current_registry` returns a registry object, which DummyRequest will fall back on, causing the tests to pass and rendering them useless. On this branch, it returns `None`, causing the tests to fail. I can't find any reason in the diff why this would change. This makes me nervous.
2019-12-14Fix security policy integration tests.Theron Luhn
2019-12-14Fix tests for `SesssionAuthenticationHelper`Theron Luhn
2019-12-14merge upstreamÉric Araujo