File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 4
4
class {{ exercise | camel_case }}Test(unittest.TestCase):
5
5
{% for case in cases [0]["cases" ] -%}
6
6
{% set description = case ["description" ] | to_snake -%}
7
+ {% set testdef = "def test_" ~ description ~ "(self):" -%}
7
8
{% set value = case ["input" ]["puzzle" ] -%}
8
- {% if value |length > 100 -%}
9
- # Reason to skip this test at https://github.com/exercism/python/pull/1358
9
+ {% set long_test = value |length > 100 -%}
10
+ {% if long_test -%}
11
+ # See https://github.com/exercism/python/pull/1358
10
12
@unittest.skip("extra-credit")
11
- {% endif %}
12
- def test_{{ description }}(self):
13
+ {{ testdef }}
14
+ """This test may take a long time to run. Please be patient when running it."""
15
+ {% - else %}
16
+ {{ testdef }}
17
+ {% - endif %}
13
18
{% set expected = case ["expected" ] -%}
14
- {% if value |length > 100 -%}
19
+ {% if long_test -%}
15
20
{% for line in value | wrap_overlong (width =62) -%}
16
21
{% if loop .index == 1 -%}
17
22
puzzle = {{ line }}
Original file line number Diff line number Diff line change @@ -59,9 +59,10 @@ def test_puzzle_with_ten_letters(self):
59
59
},
60
60
)
61
61
62
- # Reason to skip this test at https://github.com/exercism/python/pull/1358
62
+ # See https://github.com/exercism/python/pull/1358
63
63
@unittest .skip ("extra-credit" )
64
64
def test_puzzle_with_ten_letters_and_199_addends (self ):
65
+ """This test may take a long time to run. Please be patient when running it."""
65
66
puzzle = (
66
67
"THIS + A + FIRE + THEREFORE + FOR + ALL + HISTORIES + I + TELL"
67
68
"+ A + TALE + THAT + FALSIFIES + ITS + TITLE + TIS + A + LIE +"
You can’t perform that action at this time.
0 commit comments