Fix special card groups option for non en_us languages (#219)

* fix a bunch of formatting problems that only show up for combined card types in languages other than english
* add tests that actually perform generation during testing
This commit is contained in:
Peter authored and GitHub committed 2018-11-06 10:16:51 -08:00
1 parent d1e06b9b88
commit c5618bacd2
5 files changed
+49 -22

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
from __future__ import print_function
import pytest
from .. import main
def get_clean_opts(opts):
options = main.parse_opts(opts)
options = main.clean_opts(options)
return options
def test_standard_opts():
# should be the default
options = get_clean_opts([])
main.generate(options)
@pytest.mark.parametrize("lang", main.get_languages('card_db'))
def test_grouped(lang):
print('checking ' + lang)
options = get_clean_opts(['--special-card-groups', '--language={}'.format(lang)])
main.generate(options)