Skip to content

fix(test-tools): Register Flagsmith pytest markers - #304

Merged
khvn26 merged 3 commits into
mainfrom
fix/register-pytest-markers
Nov 30, 2026
Merged

khvn26 merged 3 commits into
mainfrom
fix/register-pytest-markers

Conversation

@khvn26

@khvn26 khvn26 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Avoid noise in test logs.

The pytest plugin handles the `saas_mode`, `enterprise_mode` and
`task_processor_mode` markers, but never registered them. As a result,
every consumer gets a PytestUnknownMarkWarning for each use, and can't
enable `--strict-markers`.
@khvn26
khvn26 requested a review from a team as a code owner November 30, 2026 17:00
@khvn26
khvn26 requested review from emyller and removed request for a team November 30, 2026 17:00
@codecov-commenter

codecov-commenter commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 97.74%. Comparing base (756f6d2) to head (ebd84e0).

Files with missing lines Patch % Lines
src/common/test_tools/plugin.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #304      +/-   ##
==========================================
- Coverage   97.75%   97.74%   -0.02%     
==========================================
  Files         114      114              
  Lines        5176     5184       +8     
==========================================
+ Hits         5060     5067       +7     
- Misses        116      117       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

cubic-dev-ai[bot]
cubic-dev-ai Bot previously approved these changes Nov 30, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Test tooling change that registers pytest markers to silence warnings and reduce noise in test logs; no production behavior is affected.

Turn on auto-fix | Re-trigger cubic

@emyller emyller left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

who tests the testmen

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Test tooling change that registers custom Flagsmith pytest markers to avoid warning noise, with a test verifying registration; no production behavior is affected.

Turn on auto-fix | Re-trigger cubic

@khvn26
khvn26 merged commit 28fc3c5 into main Nov 30, 2026
4 checks passed
@khvn26
khvn26 deleted the fix/register-pytest-markers branch November 30, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants