Skip to content

Commit

Permalink
Revert. Test case doesn't work with optional types
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrattli committed Feb 6, 2022
1 parent e99745e commit 4aab2cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/integration/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Point(faust.Record):

class Arena(faust.Record):
points: List[Point]
timestamp: Optional[float] = None
timestamp: float = None


app = faust.App("t-integration", origin="t.integration.app")
Expand Down
6 changes: 1 addition & 5 deletions tests/integration/cli/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ def test_json(self, faust_json):

assert model == [
{"field": "points", "type": "typing.List[__main__.Point]", "default": "*"},
{
"field": "timestamp",
"type": "typing.Optional[float]",
"default": "None",
},
{"field": "timestamp", "type": "float", "default": "None"},
]

def test_tabulated(self, faust):
Expand Down

0 comments on commit 4aab2cb

Please sign in to comment.