summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2023-08-21chore: appease lint, better varnameTres Seaver
2023-08-21fix: reject NUL character as path elementTres Seaver
See: https://github.com/Pylons/pyramid/security/advisories/GHSA-j8g2-6fc7-q8f8
2022-12-29Drop l*gettext() from pyramid.i18nStefano Rivera
Python 3.8 deprecated l*gettext() (bpo-33710), and it was removed from Python in 3.11 (bpo-44235). In most cases on Python 3, the l variants aren't useful, and difficult to use correctly. This adds support for Python 3.11.
2022-03-13pyupgrade --py37-plusMichael Merickel
2022-03-12set target versions for blackMichael Merickel
2022-01-07make latest black happyMarcin Lulek
2021-02-17Remove inspect.unwrap, not in Python 2.7 and it's a no-op.Theron Luhn
2021-02-17Write tests.Theron Luhn
2021-01-15Test Router.finish_requestTheron Luhn
2021-01-15Fix tests.Theron Luhn
2020-11-01blackifyMichael Merickel
2020-11-01Merge pull request #3620 from luhn/identity-renameMichael Merickel
Rename `ISecurityPolicy.authenticated_identity` to `identity`
2020-11-01Merge pull request #3587 from ericatkin/masterMichael Merickel
cur_domain is effectively equivalent to '.' + cur_domain and therefor…
2020-10-13Rename `ISecurityPolicy.authenticated_identity` to `identity`Theron Luhn
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-22Fix lint failuresEric Atkin
2020-06-22Only set a single cookieEric Atkin
2020-06-03Handle non string object passed to aslist methodThibault Ravera
2020-05-28cur_domain is effectively equivalent to '.' + cur_domain and therefore ↵Eric Atkin
negates the effect of wild_domain
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