1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Improved readability of string interpolation in frequently used examples in docs.

This commit is contained in:
Trey Hunner
2022-11-10 04:18:38 -08:00
committed by GitHub
parent d6cbf39a1b
commit fad070b07b
8 changed files with 11 additions and 10 deletions

View File

@@ -969,7 +969,7 @@ The code for this test may look as follows::
super().tearDownClass()
def test_login(self):
self.selenium.get('%s%s' % (self.live_server_url, '/login/'))
self.selenium.get(f'{self.live_server_url}/login/')
username_input = self.selenium.find_element(By.NAME, "username")
username_input.send_keys('myuser')
password_input = self.selenium.find_element(By.NAME, "password")