Repository navigation
enterprise: fix enterprise_test skipping tests when used as class decorator - #24138
Merged
Merged
Conversation
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #24138 +/- ##
==========================================
+ Coverage 92.84% 93.38% +0.53%
==========================================
Files 1056 1056
Lines 62751 62759 +8
Branches 424 424
==========================================
+ Hits 58259 58605 +346
+ Misses 4492 4154 -338
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Contributor
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-251cc93ff2cf6f3315b7c6541c7bf1dee881a865
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-251cc93ff2cf6f3315b7c6541c7bf1dee881a865Afterwards, run the upgrade commands from the latest release notes. |
BeryJu
approved these changes
Jul 17, 2026
kensternberg-authentik
added a commit
that referenced
this pull request
Jul 18, 2026
* main: policies: filter policy engine (#24025) endpoints/connectors/agent: fix auth schema for device endpoints (#24164) core, web: update translations (#24137) packages/django-dramatiq-postgres/broker: use positive state filter for pending messages (#24074) events: fix typo (#24161) root: fix agents test instructions (#24119) enterprise: fix enterprise_test skipping tests when used as class decorator (#24138) core: bump library/nginx from `ec4ed8b` to `b5a9a3c` in /website (#24146) core: bump github.com/pires/go-proxyproto from 0.14.0 to 0.15.0 (#24139) core: bump library/node from `ffc7838` to `715e55e` in /lifecycle/container (#24142) core: bump pnpm/pnpm from 11.12.0 to 11.13.0 in /lifecycle/container (#24144) core: bump library/golang from `ee5a795` to `3f1e064` in /lifecycle/container (#24143) core: bump pnpm/pnpm from 11.12.0 to 11.13.0 in /website (#24147) core: bump kubernetes from 36.0.2 to 36.0.3 (#24145) core: bump docker from 7.1.0 to 7.2.0 (#24149) web: bump webcomponent-qr-code from 1.3.0 to 2.0.0 in /web (#24152) core: bump regex from 1.12.4 to 1.13.0 (#24150) core: bump rust-toolchain from 1.97.0 to 1.97.1 (#24148) website/docs: cleanup 07-12: refresh contributor guidance (#23969) packages/ak-common/db: ignore empty passwords (#24127)
kensternberg-authentik
added a commit
that referenced
this pull request
Jul 18, 2026
* main: policies: filter policy engine (#24025) endpoints/connectors/agent: fix auth schema for device endpoints (#24164) core, web: update translations (#24137) packages/django-dramatiq-postgres/broker: use positive state filter for pending messages (#24074) events: fix typo (#24161) root: fix agents test instructions (#24119) enterprise: fix enterprise_test skipping tests when used as class decorator (#24138) core: bump library/nginx from `ec4ed8b` to `b5a9a3c` in /website (#24146) core: bump github.com/pires/go-proxyproto from 0.14.0 to 0.15.0 (#24139) core: bump library/node from `ffc7838` to `715e55e` in /lifecycle/container (#24142) core: bump pnpm/pnpm from 11.12.0 to 11.13.0 in /lifecycle/container (#24144) core: bump library/golang from `ee5a795` to `3f1e064` in /lifecycle/container (#24143) core: bump pnpm/pnpm from 11.12.0 to 11.13.0 in /website (#24147) core: bump kubernetes from 36.0.2 to 36.0.3 (#24145) core: bump docker from 7.1.0 to 7.2.0 (#24149) web: bump webcomponent-qr-code from 1.3.0 to 2.0.0 in /web (#24152) core: bump regex from 1.12.4 to 1.13.0 (#24150) core: bump rust-toolchain from 1.97.0 to 1.97.1 (#24148) website/docs: cleanup 07-12: refresh contributor guidance (#23969) packages/ak-common/db: ignore empty passwords (#24127)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#18404 replaced
patch_licensewithenterprise_test(), but the new decorator only handles functions.When applied to a class it replaces the class with a plain function, so pytest silently collects nothing from it.
The suites in enterprise/reports/tests and enterprise/lifecycle/tests/test_api.py currently run 0 tests on main.
This makes enterprise_test() handle classes the same way
mock.patchdoes: wrap each test* method and return the class.Before/after:
Checklist
make all)make docs)