Skip to content

Conversation

@Sebasdevrs
Copy link
Collaborator

main file = notes_test
unittest file = test_notes

Update: Created a function for calling a random image in notes_test, and created a test for this function in test_notes under TestRandomNote.

Created a function for calling a random image in notes_test, and created a test for this function in test_notes Under TestRandomNote
Copy link

@ToscaBeijaert ToscaBeijaert left a comment

Choose a reason for hiding this comment

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

Hey hey,

I think you should add some docstrings and some parameter info and some general comments about what exactly it is you are doing. This way other people will be able to follow what is going on as well :)

from PIL import ImageTk, Image
from random import randint

def imagegen(numb, imagelist):

Choose a reason for hiding this comment

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

Maybe add some dostring here to what it does and what parameters are needed and what it returns.
For example:

def imagegen(numb, imagelist) -> musical_notes.........: ( --> shows what it returns)
""" Some info of what this function does
:param numb: info about parameter
:type numb: info of what kind of parameter it is
... etc
... etc
"""

widget=Widget('answer_box')
self.assertEqual(widget.size(), (50, 50))

class TestRandomNote(unittest.TestCase):

Choose a reason for hiding this comment

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

idem ditto, add some dostrings and parameter info

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