summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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
2019-12-14start reworking security policyÉric Araujo
2019-12-04negotiate the best static asset using supported encodingsMichael Merickel
2019-11-05deprecate PickleSerializerjonathan vanasco
2019-11-05black 19.10b0 was released on 2019.10.28 and introduced several changes that ↵jonathan vanasco
affect Pyramid
2019-10-17support Origin: null in csrf_trusted_origins and check_origin=FalseMichael Merickel
2019-10-17remove check_csrf view predicateMichael Merickel
2019-10-02define an IPredicateInfo instead of passing the full configurator to predicatesMichael Merickel
2019-10-02Merge pull request #3510 from mmerickel/scan-categoriesMichael Merickel
modify the default scan categories to be limited to only 'pyramid'