Skip to content

Move pyTooling's testcases of DependencyTable and Shields - #5

Merged
Paebbels merged 2 commits into
devfrom
claude/transfer-tests
Oct 3, 2026
Merged

Paebbels merged 2 commits into
devfrom
claude/transfer-tests

Conversation

@pytooling-claude

Copy link
Copy Markdown

Moves pyTooling's testcases of this extension, which #2 left behind - its description wrongly said there were none.

Unit Tests

  • tests/unit/DependencyTable.py (37 testcases): the entrypoints readEntrypoints() reads from conf.py - files, includes, symbolic links, packages with and without extras, the singular and plural fields and every rejected declaration -, the version constraints and formats DependencyTable prints, the dependency formats, and the report of unresolved licenses.
  • tests/unit/Shields.py (33 testcases): the directive's options (GitHub slug, links, source and documentation licenses as SPDX expressions, workflow, documentation URL), its content (rows, unknown badges, missing options), and the badge table (every badge formats its URLs, LaTeX gets the raster badge, identifiers, alternative texts, Shield's parameter checks).
  • Two commits, to keep the move verifiable:
    1. 90aa43b moves the eight classes from pyTooling's tests/unit/Documentation.py (dev d75c9990) unchanged apart from the import paths and the dropped Python 3.11 guard - pyTooling.Sphinx starts at Python 3.12.
    2. 5971ead names them test_<Feature>[_<Variant>]; the sentence a name spelled out became its doc-string where it had none. Nothing else changes.
  • tests/unit: 97 passed, 89 subtests.

Others

  • Not moved, as they stay in pyTooling: Splitting and SummaryLength (testing pyTooling.Documentation, not this extension). The schema-graph classes came with Build the schema graph on pyTooling.Graph.GraphViz #4; the gha domain's tests went to pyTooling.GitHub.
  • pyTooling keeps its copy of these testcases until the move is released, like the code.

Related Issues and Pull-Requests

claude-code and others added 2 commits October 3, 2026 21:44
Unchanged from pyTooling's tests/unit/Documentation.py (dev d75c9990) apart from the import paths and the dropped
Python 3.11 guard - pyTooling.Sphinx starts at Python 3.12.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
The sentence a name spelled out is the doc-string now, where a testcase had none.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@pytooling-claude
pytooling-claude Bot requested a review from Paebbels as a code owner October 3, 2026 21:45
@pytooling-claude pytooling-claude Bot added the Enhancement New feature or request label Oct 3, 2026
@codacy-production

codacy-production Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 7 minor

Alerts:
⚠ 7 issues (≤ 0 issues of at least minor severity)

Results:
7 new issues

Category Results
Documentation 7 minor

View in Codacy

🟢 Metrics 87 complexity · 0 duplication

Metric Results
Complexity 87
Duplication 0

View in Codacy

🟢 Coverage ∅ diff coverage · +16.97% coverage variation

Metric Results
Coverage variation ✅ +16.97% coverage variation (-1.00%)
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (f1a80f9) 1137 462 40.63%
Head commit (5971ead) 1137 (+0) 655 (+193) 57.61% (+16.97%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#5) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@Paebbels
Paebbels merged commit 21e8870 into dev Oct 3, 2026
49 of 50 checks passed
@Paebbels
Paebbels deleted the claude/transfer-tests branch October 3, 2026 21:49
@codecov

codecov Bot commented Oct 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.90%. Comparing base (f1a80f9) to head (5971ead).
⚠️ Report is 3 commits behind head on dev.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##              dev       #5       +/-   ##
===========================================
+ Coverage   39.75%   56.90%   +17.15%     
===========================================
  Files           7        7               
  Lines        1137     1137               
  Branches      188      188               
===========================================
+ Hits          452      647      +195     
+ Misses        675      482      -193     
+ Partials       10        8        -2     
Flag Coverage Δ
unittests 56.90% <ø> (+17.15%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@pytooling-claude pytooling-claude Bot mentioned this pull request Oct 3, 2026
This was referenced Oct 17, 2026
@pytooling-claude pytooling-claude Bot mentioned this pull request Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants