Skip to content

Commit

Permalink
adapt UT
Browse files Browse the repository at this point in the history
  • Loading branch information
manatlan committed Dec 12, 2023
1 parent d4c2b8b commit 1c00b51
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,9 +723,8 @@ def init(self):
self.state["hello"]=42
self <= Tag.span("hello")

# assert than bicoz it uses state, it can't be used simply
with pytest.raises(TypeError):
str( LocalApp() ) # TypeError: 'NoneType' object does not support item assignment
# assert that the state works in all cases
str( LocalApp() ) # TypeError: 'NoneType' object does not support item assignment

ses=dict(user="moi")

Expand Down

0 comments on commit 1c00b51

Please sign in to comment.