Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmitterdorfer committed Oct 22, 2020
1 parent 3d6eb83 commit 33a7a70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/track/loader_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2229,7 +2229,7 @@ def test_parse_invalid_data_streams_with_indices(self, mocked_param_checker):
complete_track_params = loader.CompleteTrackParams()
reader = loader.TrackSpecificationReader(
complete_track_params=complete_track_params)
with self.assertRaises(loader.TrackSyntaxError) as ctx:
with self.assertRaises(loader.TrackSyntaxError):
reader("unittest", track_specification, "/mapping")

@mock.patch("esrally.track.loader.register_all_params_in_track")
Expand Down Expand Up @@ -2270,7 +2270,7 @@ def test_parse_invalid_data_streams_with_target_index(self, mocked_param_checker
complete_track_params = loader.CompleteTrackParams()
reader = loader.TrackSpecificationReader(
complete_track_params=complete_track_params)
with self.assertRaises(loader.TrackSyntaxError) as ctx:
with self.assertRaises(loader.TrackSyntaxError):
reader("unittest", track_specification, "/mapping")

@mock.patch("esrally.track.loader.register_all_params_in_track")
Expand Down Expand Up @@ -2311,7 +2311,7 @@ def test_parse_invalid_data_streams_with_target_type(self, mocked_param_checker)
complete_track_params = loader.CompleteTrackParams()
reader = loader.TrackSpecificationReader(
complete_track_params=complete_track_params)
with self.assertRaises(loader.TrackSyntaxError) as ctx:
with self.assertRaises(loader.TrackSyntaxError):
reader("unittest", track_specification, "/mapping")

@mock.patch("esrally.track.loader.register_all_params_in_track")
Expand Down Expand Up @@ -2354,7 +2354,7 @@ def test_parse_invalid_no_data_stream_target(self, mocked_param_checker):
complete_track_params = loader.CompleteTrackParams()
reader = loader.TrackSpecificationReader(
complete_track_params=complete_track_params)
with self.assertRaises(loader.TrackSyntaxError) as ctx:
with self.assertRaises(loader.TrackSyntaxError):
reader("unittest", track_specification, "/mapping")

@mock.patch("esrally.track.loader.register_all_params_in_track")
Expand Down

0 comments on commit 33a7a70

Please sign in to comment.