Skip to content

Pass arguments for unsupported fields in the model test - #72

Merged
timkpaine merged 1 commit into
mainfrom
update-tests-for-p2a-warnings
Nov 14, 2026
Merged

timkpaine merged 1 commit into
mainfrom
update-tests-for-p2a-warnings

Conversation

@timkpaine

Copy link
Copy Markdown
Member

Description

test_get_arg_from_model expected p2a to warn about each model field it cannot expose. python-project-templates/p2a#45 prints those warnings only when an argument for the field is passed, so the test now passes one argument per unsupported field and expects them among the unparsed extras.

The test passes with p2a 0.1.2 and with the p2a#45 branch. Merge this before a p2a release with that change, or this repository's CI fails on the new p2a.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup
  • CI / build configuration
  • Other (describe below)

Test update.

Checklist

  • Linting passes (make lint)
  • Tests pass (make test)
  • New tests added for new functionality
  • Documentation updated (if applicable)
  • Changelog / version bump (if applicable)

The test expected p2a to warn about each field it cannot expose. A p2a change prints those warnings only when an argument for the field is passed. Passing the arguments produces the warnings with both the released p2a and the new one.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

9 tests  ±0   9 ✅ ±0   0s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 187ac96. ± Comparison against base commit f2b8c09.

@codecov

codecov Bot commented Nov 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.52%. Comparing base (f2b8c09) to head (187ac96).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #72   +/-   ##
=======================================
  Coverage   96.52%   96.52%           
=======================================
  Files           5        5           
  Lines         230      230           
  Branches        7        7           
=======================================
  Hits          222      222           
  Misses          7        7           
  Partials        1        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.

@timkpaine
timkpaine merged commit fc8f78d into main Nov 14, 2026
4 checks passed
@timkpaine
timkpaine deleted the update-tests-for-p2a-warnings branch November 14, 2026 00:54
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.

1 participant