Skip to content

Commit

Permalink
cosmetic(tests/test_data.py): Appease flake8 and black style
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomh committed Oct 4, 2023
1 parent 7ebc37d commit 88e798c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def test_get_hist(self):
def test_get_rps(self):
rps_vals = opl.data.get_rps([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], bucket_size=10, granularity=1)
self.assertEqual(len(rps_vals), 10)
self.assertEqual(sum(rps_vals)/len(rps_vals), 1.0)
self.assertEqual(sum(rps_vals) / len(rps_vals), 1.0)

rps_vals = opl.data.get_rps([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
self.assertEqual(len(rps_vals), 5)
self.assertEqual(sum(rps_vals)/len(rps_vals), 1.0)
self.assertEqual(sum(rps_vals) / len(rps_vals), 1.0)

0 comments on commit 88e798c

Please sign in to comment.