Closed sweep-ai[bot] closed 9 months ago
src/test_problem2c.py
β
Check src/test_problem2c.py with contents:
Ran GitHub Actions for 0db69001bc4e86d2762b597075504069e880237e:
src/problem2c.py
β
Check src/problem2c.py with contents:
Ran GitHub Actions for 7fbccb1580f04c986c8463156f9cc5828468bf56:
Sweep: please rename test_problem2c.py to problem2d.py.
PR Feedback (click)
Description
This pull request includes changes to the
problem2c.py
andtest_problem2c.py
files. The changes involve implementing tests for the password file mechanism and fixing a potential bug.Summary
get_entry
method to theUser
class inproblem2c.py
to return a formatted string representation of the user's information.test_problem2c.py
:test_add_user_successful
: Tests adding a user successfully.test_add_user_duplicate
: Tests adding a duplicate user.test_retrieve_user_entry_existing
: Tests retrieving the entry of an existing user.test_retrieve_user_entry_non_existing
: Tests retrieving the entry of a non-existing user.test_retrieve_user_existing
: Tests retrieving an existing user.test_retrieve_user_non_existing
: Tests retrieving a non-existing user.test_user_class
: Tests theUser
class.Fixes #9.
π Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py
!π‘ To get Sweep to edit this pull request, you can: