You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What could you do to make sure that these files we are creating don't interfere with our repository or the rest of the package?
Add an __init__.py file to the tests folder.
Fix sagittal_brain.py (as you may remember from last week, the code wrongly averages over the columns, not the rows), make sure the test passes and commit these changes.
Try to install it by running pip install -e . where the setup.py is, and then run the tests with pytest.
Share your solution as a pull request to Charlene's repository mentioning this issue (by including the text Addresses UCL-COMP0233-22-23/RSE-Classwork#44 in the pull request description), remember to mention your team members too! (with @github_username)
Help Charlene to test her package (#43) (remember to commit after each step, if appropriate).
Choose who in your team is writing now! (make sure you've pulled the latest changes from your team's fork.)
Create a
tests
directory insidesagittal_average
and add a test similar to what we used last week when we discovered the bug.Hint
You need a
test_something
function that runs all the belowWhat could you do to make sure that these files we are creating don't interfere with our repository or the rest of the package?
Add an
__init__.py
file to the tests folder.Fix
sagittal_brain.py
(as you may remember from last week, the code wrongly averages over the columns, not the rows), make sure the test passes and commit these changes.Try to install it by running
pip install -e .
where thesetup.py
is, and then run the tests withpytest
.Share your solution as a pull request to Charlene's repository mentioning this issue (by including the text
Addresses UCL-COMP0233-22-23/RSE-Classwork#44
in the pull request description), remember to mention your team members too! (with@github_username
)Sample solution:
UCL-COMP0233-2022-2023/sagittal_average#4
The text was updated successfully, but these errors were encountered: