def test_table_pretty_output_windows(sample_data, pretty_output_win, fixture_key): instance = CliTable(sample_data[fixture_key]) instance.INNER_BORDER = False table = instance.pretty_table().strip() expected = pretty_output_win[fixture_key].strip() assert expected == table
def test_table_pretty_output(sample_data, pretty_output, fixture_key): instance = CliTable(sample_data[fixture_key]) instance.INNER_BORDER = False table = instance.pretty_table() expected = pretty_output[fixture_key] + "\n" assert expected == table