<commit_before>import os
import shutil
import deck2pdf
from pytest import raises
from . import (
    current_dir,
    test_dir,
    skip_in_ci,
)


class TestForMain(object):
    def setUp(self):
        shutil.rmtree(os.path.join(current_dir, '.deck2pdf'), ignore_errors=True)

    def test_help(self):
        raises(SystemExit, deck2pdf.main, [])
        raises(SystemExit, deck2pdf.main, ['-h'])

    @skip_in_ci
    def test_files(self):
        test_slide_path = os.path.join(test_dir, 'testslide/_build/slides/index.html')
        deck2pdf.main([test_slide_path, ])
        assert os.path.exists(os.path.join(current_dir, '.deck2pdf'))
<commit_msg>Remove decorator 'skip_in_ci' from test_files<commit_after>import os
import shutil
import deck2pdf
from pytest import raises
from . import (
    current_dir,
    test_dir,
)


class TestForMain(object):
    def setUp(self):
        shutil.rmtree(os.path.join(current_dir, '.deck2pdf'), ignore_errors=True)

    def test_help(self):
        raises(SystemExit, deck2pdf.main, [])
        raises(SystemExit, deck2pdf.main, ['-h'])

    def test_files(self):
        test_slide_path = os.path.join(test_dir, 'testslide/_build/slides/index.html')
        deck2pdf.main([test_slide_path, '-c', 'stub'])
        assert os.path.exists(os.path.join(current_dir, '.deck2pdf'))

{'fraction_non_alphanumeric': 0.12859304084720122, 'fraction_numerical': 0.009077155824508321, 'mean_word_length': 3.6097560975609757, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6464131', 'n_tokens_mistral': 464, 'n_tokens_neox': 464, 'n_words': 82}