Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller committed Sep 17, 2024
1 parent beff4bc commit 9dc5041
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lemarche/www/auth/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def __init__(self, *args, **kwargs):
if field in self.fields:
self.fields[field].widget.attrs.update({"autofocus": ""})
break
else:
self.fields["kind"].widget.attrs.update({"autofocus": ""})

# password validation rules
self.fields["password1"].help_text = CnilCompositionPasswordValidator().get_help_text()
Expand Down
2 changes: 1 addition & 1 deletion lemarche/www/siaes/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def setUpTestData(cls):

def test_search_num_queries(self):
url = reverse("siae:search_results")
with self.assertNumQueries(13):
with self.assertNumQueries(12):
response = self.client.get(url)
siaes = list(response.context["siaes"])
self.assertEqual(len(siaes), 20)
Expand Down

0 comments on commit 9dc5041

Please sign in to comment.