mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-19 06:22:16 +00:00
Use a fstring
This commit is contained in:
@@ -34,4 +34,5 @@ def test_trainee_detail(admin_client, trainee, admin_user):
|
||||
url = reverse('trainee_detail', kwargs={'pk': trainee.pk})
|
||||
response = admin_client.get(url)
|
||||
assertNotContains(response, "Your")
|
||||
assertContains(response, "{}'s Training Record".format(trainee.first_name + " " + trainee.last_name))
|
||||
name = trainee.first_name + " " + trainee.last_name
|
||||
assertContains(response, f"{name}'s Training Record")
|
||||
|
||||
Reference in New Issue
Block a user