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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user