Skip to content
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

[WIP] Improve testsuite for gomlib #521

Draft
wants to merge 1 commit into
base: canon
Choose a base branch
from

Conversation

mfonism
Copy link
Contributor

@mfonism mfonism commented Sep 10, 2020

@nbraud, @AstraLuma, @pathunstrom

This is a super WIP.

I wrote the tests in a separate file from test_gom.py so you can review it without any distraction from old code. When done, I can add it to test_gom.py.

Is this the right way to go for testing ppb.gomlib.Children?

How can I improve upon the tests for the methods my code is testing so far?

Tested methods are:

  • add()
  • remove()
  • get()
  • tags()
  • kinds()

The dunder methods contains(), iter() and len() aren't tested so well, though.

I'm still trying to figure out how to test walk().

@mfonism mfonism requested a review from a team as a code owner September 10, 2020 22:19
@AstraLuma AstraLuma marked this pull request as draft September 11, 2020 03:16
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