refactor: upgrade code to >=python3.7 (pre-commit)
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2189>
This commit is contained in:
parent
7768ea77a4
commit
8d9946d35a
143 changed files with 454 additions and 582 deletions
|
|
@ -6,7 +6,7 @@ from funkwhale_api.users.serializers import UserActivitySerializer
|
|||
def test_get_favorite_activity_url(settings, factories):
|
||||
favorite = factories["favorites.TrackFavorite"]()
|
||||
user_url = favorite.user.get_activity_url()
|
||||
expected = "{}/favorites/tracks/{}".format(user_url, favorite.pk)
|
||||
expected = f"{user_url}/favorites/tracks/{favorite.pk}"
|
||||
assert favorite.get_activity_url() == expected
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue