Skip to content

Commit

Permalink
Merge pull request #312 from jwjacobson/list
Browse files Browse the repository at this point in the history
List
  • Loading branch information
jwjacobson authored Sep 18, 2024
2 parents d519fd4 + 9395832 commit 9c5e59c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def test_recount(user_tune_rep, client):
assert response.status_code == 200
assert "tune_count" in response.context
assert response.context["tune_count"] == 5
assert "tune/_count.html" in [t.name for t in response.templates]
assert "tune/partials/_count.html" in [t.name for t in response.templates]
assert response.context["user"] == user


Expand Down Expand Up @@ -312,7 +312,8 @@ def test_set_rep_fields_invalid_last_played(client, user_tune_rep):
invalid_last_played = "tomorrow"

response = client.post(
reverse("tune:set_rep_fields", args=[tune_pk]), {"last_played": invalid_last_played}
reverse("tune:set_rep_fields", args=[tune_pk]),
{"last_played": invalid_last_played},
)

assert response.status_code == 200
Expand Down
2 changes: 1 addition & 1 deletion tune/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def change_tune(request):
Select a different tune from the play search results if the previous one is rejected.
"""
if not request.session.get("rep_tunes"):
return render(request, "tune/_play_card.html", {"selected_tune": None})
return render(request, "tune/partials/_play_card.html", {"selected_tune": None})

chosen_tune_id = choice(request.session["rep_tunes"])
request.session["rep_tunes"].remove(chosen_tune_id)
Expand Down

0 comments on commit 9c5e59c

Please sign in to comment.