Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rayangler committed Dec 17, 2024
1 parent 7d7aa74 commit 23b6a4d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions snooty/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4549,12 +4549,13 @@ def test_parse_ast() -> None:
]
}
],
"options": \{\}
"options": {}
}
]
}
],
"fileid": "test.ast"
"fileid": "test.txt",
"options": {}
}
""",
Path(
Expand All @@ -4579,12 +4580,13 @@ def test_parse_ast() -> None:
]
}
],
"fileid": "bad-types.ast"
"fileid": "bad-types.txt",
"options": {}
}
""",
}
) as result:
diagnostics = result.diagnostics[FileId("test.ast")]
diagnostics = result.diagnostics[FileId("test.txt")]
assert not diagnostics
bad_types_diagnostics = result.diagnostics[FileId("bad-types.ast")]
bad_types_diagnostics = result.diagnostics[FileId("bad-types.txt")]
assert [type(d) for d in bad_types_diagnostics] == [UnexpectedNodeType]

0 comments on commit 23b6a4d

Please sign in to comment.