Skip to content

Tests: Eliminate a bunch of redundant test files #461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 13, 2025

Conversation

ferdnyc
Copy link
Member

@ferdnyc ferdnyc commented Mar 13, 2025

Going through the test/graphs/ directory, I discovered that it contained:

  1. A PostScript file (dfd.ps) that was never referenced anywhere in the repo; deleted.
  2. Six pairs of files that were byte-for-byte identical; deleted one of each pair.
  3. Three file-groups that were too similar to all be useful:
    • xx.dot and b102.dot were identical except for the font size value of each element; deleted xx.dot.
    • lsunix[123].dot were wildly (and unhelpfully) similar; deleted lsunix[12].dot and renamed lsunix3.dot to lsunix.dot.
    • process.dot and p[234].dot were also iterations of the same graph, kept only the most complex (p4.dot)

ferdnyc added 4 commits March 13, 2025 04:54
`xx.dot` turned out to be identical to `b102.dot`, except that the font
sizes were all changed from `10` to `14`. Since that difference alone
isn't really testing anything useful, we only need one of those files.
Six pairs of test files turned out to be byte-for-byte identical.
Remove one of each pair.
`graphs/lsunix[123].dot` were all too similar to be useful.
Same for `graphs/process.dot` and `graphs/p[234].dot`.
Keep only one from each set. (The "most complex", generally.)
Copy link

Coverage report

This PR does not seem to contain any modification to coverable code.

@lkk7
Copy link
Member

lkk7 commented Mar 13, 2025

I've never ventured into those old files, thank you!

@lkk7 lkk7 merged commit 5681c3f into pydot:main Mar 13, 2025
22 checks passed
@ferdnyc ferdnyc deleted the xx-b102-tests-same branch March 15, 2025 05:32
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.

2 participants