summaryrefslogtreecommitdiff
path: root/docs/topics/testing/tools.txt
diff options
context:
space:
mode:
authorTrey Hunner <trey@treyhunner.com>2022-11-10 04:18:38 -0800
committerGitHub <noreply@github.com>2022-11-10 13:18:38 +0100
commitfad070b07b8c5f5022c2867d291cb6968709f2a1 (patch)
tree998c660d8a92b2867594ac1a6bab4a5fa57fc0f0 /docs/topics/testing/tools.txt
parentd6cbf39a1ba2053c6211a16ed42d5410e5c5cdd0 (diff)
Improved readability of string interpolation in frequently used examples in docs.
Diffstat (limited to 'docs/topics/testing/tools.txt')
-rw-r--r--docs/topics/testing/tools.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 81baca4f3f..668ce61080 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -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")