Skip to content

Commit

Permalink
Add a test case to torture.py (#2822)
Browse files Browse the repository at this point in the history
Co-authored-by: hauntsaninja <>
  • Loading branch information
hauntsaninja committed Jan 29, 2022
1 parent a24e1f7 commit a4992b4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/data/torture.py
Expand Up @@ -22,6 +22,12 @@ def test(self, othr):
(name, description, self.default, self.selected, self.auto_generated, self.parameters, self.meta_data, self.schedule) ==
(name, description, othr.default, othr.selected, othr.auto_generated, othr.parameters, othr.meta_data, othr.schedule))


assert (
a_function(very_long_arguments_that_surpass_the_limit, which_is_eighty_eight_in_this_case_plus_a_bit_more)
== {"x": "this need to pass the line limit as well", "b": "but only by a little bit"}
)

# output

importA
Expand Down Expand Up @@ -76,3 +82,10 @@ def test(self, othr):
othr.meta_data,
othr.schedule,
)


assert a_function(
very_long_arguments_that_surpass_the_limit,
which_is_eighty_eight_in_this_case_plus_a_bit_more,
) == {"x": "this need to pass the line limit as well", "b": "but only by a little bit"}

0 comments on commit a4992b4

Please sign in to comment.