Skip to content

Commit 083f813

Browse files
committed
Use f-strings instead of % formatting
1 parent 513383b commit 083f813

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jens/webapps/test/test_gitlabproducer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_known_repository(self, mock_eq):
5656
data=json.dumps({'repository':
5757
{
5858
'name': 'it-puppet-site',
59-
'git_ssh_url': "file://%s" % self.site_bare
59+
'git_ssh_url': f"file://{self.site_bare}"
6060
}
6161
}))
6262
mock_eq.assert_called_once_with('common', 'site')
@@ -68,7 +68,7 @@ def test_queue_error(self, mock_eq):
6868
data=json.dumps({'repository':
6969
{
7070
'name': 'it-puppet-site',
71-
'git_ssh_url': "file://%s" % self.site_bare
71+
'git_ssh_url': f"file://{self.site_bare}"
7272
}
7373
}))
7474
mock_eq.assert_called_once()

0 commit comments

Comments
 (0)