Skip to content

Commit

Permalink
Fix tests have no 'test' prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
madnoberson committed Jan 29, 2024
1 parent e35bb4c commit 53980bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from amdb.application.queries.get_movie_ratings import GetMovieRatingsQuery, GetMovieRatingsResult
from amdb.application.query_handlers.get_movie_ratings import GetMovieRatingsHandler
from amdb.application.common.constants.exceptions import (
GET_RATING_ACCESS_DENIED,
GET_MOVIE_RATINGS_ACCESS_DENIED,
MOVIE_DOES_NOT_EXIST,
)
from amdb.application.common.exception import ApplicationError
Expand Down Expand Up @@ -117,7 +117,7 @@ def test_get_movie_ratings_should_raise_error_when_access_is_denied(
with pytest.raises(ApplicationError) as error:
get_movie_ratings_handler.execute(get_movie_ratings_query)

assert error.value.message == GET_RATING_ACCESS_DENIED
assert error.value.message == GET_MOVIE_RATINGS_ACCESS_DENIED


def test_get_movie_ratings_should_raise_error_when_movie_does_not_exist(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def identity_provider_with_correct_permissions(
return identity_provider


def test_get_rating(
def test_get_my_ratings(
user_gateway: UserGateway,
movie_gateway: MovieGateway,
rating_gateway: RatingGateway,
Expand Down Expand Up @@ -90,7 +90,7 @@ def test_get_rating(
assert get_my_ratings_result == expected_get_my_ratings_result


def test_get_rating_should_raise_error_when_access_is_denied(
def test_get_my_ratings_should_raise_error_when_access_is_denied(
rating_gateway: RatingGateway,
permissions_gateway: PermissionsGateway,
identity_provider_with_incorrect_permissions: IdentityProvider,
Expand Down

0 comments on commit 53980bc

Please sign in to comment.