Skip to content

Commit

Permalink
Merge pull request #79 from Crown0815/patch-1
Browse files Browse the repository at this point in the history
Fix error messages to match Python function names
  • Loading branch information
sandromancuso committed Jun 19, 2024
2 parents 3d6cd66 + 072aef0 commit 0d4b62b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/tripservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ def getFriends(self):
#
def _isUserLoggedIn(user):
raise DependendClassCallDuringUnitTestException(
"UserSession.isUserLoggedIn() should not be called in an unit test"
"_isUserLoggedIn() should not be called in an unit test"
)

def _getLoggedUser():
raise DependendClassCallDuringUnitTestException(
"UserSession.getLoggedUser() should not be called in an unit test"
"_getLoggedUser() should not be called in an unit test"
)

def _findTripsByUser(user):
raise DependendClassCallDuringUnitTestException(
"TripDAO should not be invoked on an unit test."
"_findTripsByUser() should not be invoked on an unit test."
)

def getTripsByUser(user):
Expand Down

0 comments on commit 0d4b62b

Please sign in to comment.