Skip to content

Conversation

@iraidamercedes
Copy link

No description provided.

Copy link

@hyfi06 hyfi06 left a comment

Choose a reason for hiding this comment

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

Some comments


class ClosureSuite(unittest.TestCase):
def setUp(self):
self.results = [6, 20, 3]
Copy link

Choose a reason for hiding this comment

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

Esto no es un valor que vayas a pasar de un test a otro, los puedes declarar en el mismo test que propones.

Copy link

@hyfi06 hyfi06 May 15, 2020

Choose a reason for hiding this comment

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

Tests can be numerous, and their set-up can be repetitive. Luckily, we can factor out set-up code by implementing a method called setUp(), which the testing framework will automatically call for every single test we run

https://docs.python.org/3/library/unittest.html#organizing-test-code

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