test: Fix another test broken by changing "Sign out" to a form

This commit is contained in:
Jennifer Richards 2023-05-19 15:11:59 -03:00
parent 36fe6a0206
commit bc3dcb6c03
No known key found for this signature in database
GPG key ID: 9B2BF5C5ADDA6A6E

View file

@ -1993,7 +1993,7 @@ class NoPublicKeyTests(TestCase):
text_bits = [x.xpath('.//text()') for x in q('.alert-warning')]
flat_text_bits = [item for sublist in text_bits for item in sublist]
self.assertTrue(any(['not yet' in y for y in flat_text_bits]))
self.assertEqual(bool(q('form:not(.navbar-form)')),expected_form)
self.assertEqual(bool(q('#content form:not(.navbar-form)')),expected_form)
self.client.logout()
def test_not_yet(self):