mirror of
https://github.com/django-components/django-components.git
synced 2025-09-27 07:59:08 +00:00
refactor: more linting and error fixes
This commit is contained in:
parent
53a5804706
commit
486fb236bc
10 changed files with 27 additions and 20 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue