<commit_before>import pytest

from .elife import pull_elife

@pytest.mark.vcr
def test_ok(tempdir):
    pull_elife({"article": 45187}, tempdir.getpath("45187.jats.xml"))
    
    figures = [
        "fig1.jpg",
        "fig1-figsupp1.jpg",
        "fig1-figsupp2.jpg",
        "fig1-figsupp3.jpg",
        "fig1-figsupp4.jpg",
        "fig1-figsupp5.jpg",
        "fig2.jpg",
        "fig3.jpg",
        "fig4.jpg",
        "fig4-figsupp1.jpg",
        "fig4-figsupp2.jpg",
        "fig5.jpg",
        "fig5-figsupp1.jpg",
        "fig6.jpg",
        "fig6-figsupp1.jpg",
        "fig6-figsupp2.jpg",
        "fig7.jpg",
        "fig7-figsupp1.jpg",
        "fig8.jpg",<commit_msg>chore(Worker): Linting<commit_after>import pytest

from .elife import pull_elife


@pytest.mark.vcr
def test_ok(tempdir):
    pull_elife({"article": 45187}, tempdir.getpath("45187.jats.xml"))

    figures = [
        "fig1.jpg",
        "fig1-figsupp1.jpg",
        "fig1-figsupp2.jpg",
        "fig1-figsupp3.jpg",
        "fig1-figsupp4.jpg",
        "fig1-figsupp5.jpg",
        "fig2.jpg",
        "fig3.jpg",
        "fig4.jpg",
        "fig4-figsupp1.jpg",
        "fig4-figsupp2.jpg",
        "fig5.jpg",
        "fig5-figsupp1.jpg",
        "fig6.jpg",
        "fig6-figsupp1.jpg",
        "fig6-figsupp2.jpg",
        "fig7.jpg",
        "fig7-figsupp1.jpg",
        "fig8.jpg",
{'fraction_non_alphanumeric': 0.16885964912280702, 'fraction_numerical': 0.05847953216374269, 'mean_word_length': 1.9065817409766455, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '497029', 'n_tokens_mistral': 564, 'n_tokens_neox': 551, 'n_words': 64}