Skip to content

Commit

Permalink
suppress errors in tools/sapp
Browse files Browse the repository at this point in the history
Differential Revision: D53151941

fbshipit-source-id: 4e0fe49f6f40b50eff10b44235c465947ff49e68
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Jan 27, 2024
1 parent df45989 commit 54cf5f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sapp/ui/tests/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@ def testRuns(self) -> None:
allruns = runs(session)

self.assertEqual(len(allruns), 3)
# pyre-fixme[6]: For 1st argument expected `Union[SupportsTrunc, str,
# SupportsInt, Buffer, SupportsIndex]` but got `ID`.
self.assertEqual(int(allruns[0].run_id), 3)
# pyre-fixme[6]: For 1st argument expected `Union[SupportsTrunc, str,
# SupportsInt, Buffer, SupportsIndex]` but got `ID`.
self.assertEqual(int(allruns[1].run_id), 2)
# pyre-fixme[6]: For 1st argument expected `Union[SupportsTrunc, str,
# SupportsInt, Buffer, SupportsIndex]` but got `ID`.
self.assertEqual(int(allruns[2].run_id), 1)

def testLatestRun(self) -> None:
Expand All @@ -55,6 +61,8 @@ def testDeleteRun(self) -> None:
with self.db.make_session() as session:
delete_run(session, "1")
remainingRuns = runs(session)
# pyre-fixme[6]: For 1st argument expected `Union[SupportsTrunc, str,
# SupportsInt, Buffer, SupportsIndex]` but got `ID`.
remainingRunsId = [int(r.run_id) for r in remainingRuns]
self.assertEqual(len(remainingRuns), 2)
self.assertNotIn(1, remainingRunsId)
Expand Down

0 comments on commit 54cf5f1

Please sign in to comment.