refactor: more linting and error fixes

This commit is contained in:
Juro Oravec 2025-08-18 11:44:51 +02:00
parent 53a5804706
commit 486fb236bc
10 changed files with 27 additions and 20 deletions

View file

@ -201,7 +201,10 @@ class TestComponentAsView:
client = CustomClient(urlpatterns=[path("test/", view)])
response = client.get("/test/")
assert response.status_code == 200
assert b'<input type="text" name="variable" value="MockComponentRequest">' in response.content
assertInHTML(
'<input type="text" name="variable" value="MockComponentRequest">',
response.content.decode(),
)
def test_replace_slot_in_view(self):
class MockComponentSlot(Component):