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

More unit tests! #17

Open
alessandrofelder opened this issue Nov 4, 2021 · 0 comments
Open

More unit tests! #17

alessandrofelder opened this issue Nov 4, 2021 · 0 comments
Labels
week5 Testing your code

Comments

@alessandrofelder
Copy link

alessandrofelder commented Nov 4, 2021

Now that you know how to create a test, create three further tests for times.py:

Setup

Either start from your homework solution, or

Add collaborators

Add everyone in your group as collaborators to your fork.

Create three further tests

  • work collaboratively!
  • create a test each in test_times.py for:
    • two time ranges that do not overlap
    • two time ranges that both contain several intervals each
    • two time ranges that end exactly at the same time when the other starts
  • run pytest and see whether all tests are picked up by pytest and whether they pass.
  • fix any bugs in times.py the tests may have helped you find.
  • Add the new and modified files to the repository, commit them (with a meaningful comment that also includes https://github.com/UCL-MPHY0021-21-22/RSE-Classwork/issues/17) and push it to your fork.

Sample Solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
week5 Testing your code
Projects
None yet
Development

No branches or pull requests

1 participant