File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -209,18 +209,22 @@ def test_seed4_num3_input2_tablefmt_github():
209209 """Runs OK, github formatting"""
210210
211211 expected = """
212+ +-------------------+--------+
212213| Exercise | Reps |
213- |-------------------|--------|
214+ +===================+========+
214215| Hanging Chads | 86 |
216+ +-------------------+--------+
215217| Red Barchettas | 50 |
218+ +-------------------+--------+
216219| Squatting Chinups | 35 |
220+ +-------------------+--------+
217221"""
218222
219223 seed_flag = '-s' if random .choice ([0 , 1 ]) else '--seed'
220224 num_flag = '-n' if random .choice ([0 , 1 ]) else '--num'
221225 format_flag = '-tf' if random .choice ([0 , 1 ]) else '--tablefmt'
222226 rv , out = getstatusoutput (
223- f'{ prg } { num_flag } 3 { seed_flag } 4 -f { input2 } { format_flag } github ' )
227+ f'{ prg } { num_flag } 3 { seed_flag } 4 -f { input2 } { format_flag } grid ' )
224228 assert rv == 0
225229 assert out .strip () == expected .strip ()
226230
Original file line number Diff line number Diff line change @@ -54,27 +54,14 @@ def get_args():
5454
5555 table_formats = ("plain" ,
5656 "simple" ,
57- "github" ,
5857 "grid" ,
59- "fancy_grid" ,
6058 "pipe" ,
6159 "orgtbl" ,
62- "jira" ,
63- "presto" ,
64- "pretty" ,
65- "psql" ,
6660 "rst" ,
6761 "mediawiki" ,
68- "moinmoin" ,
69- "youtrack" ,
70- "html" ,
71- "unsafehtml" ,
7262 "latex" ,
7363 "latex_raw" ,
74- "latex_booktabs" ,
75- "latex_longtable" ,
76- "textile" ,
77- "tsv" )
64+ "latex_booktabs" )
7865
7966 parser .add_argument ('-tf' ,
8067 '--tablefmt' ,
You can’t perform that action at this time.
0 commit comments