<commit_before>import pytest

import virtool.organize


class TestUnset:

    @pytest.mark.parametrize("field", ["segments", "abbrevation", "new"])
    async def test(self, field, test_motor):
        await test_motor.viruses.insert_one({
            "_id": 1,
            field: True
        })

        await virtool.organize.organize_viruses(test_motor)

        assert await test_motor.viruses.find().to_list(None) == [{
            "_id": 1
        }]<commit_msg>Fix failing tests in test_organize_viruses<commit_after>import pytest

import virtool.organize


class TestUnset:

    @pytest.mark.parametrize("field", ["segments", "abbrevation", "new"])
    async def test(self, field, test_motor):
        await test_motor.viruses.insert_one({
            "_id": 1,
            field: True,
            "modified": False
        })

        await virtool.organize.organize_viruses(test_motor)

        assert await test_motor.viruses.find().to_list(None) == [{
            "_id": 1,
            "modified": False,
            "verified": True
        }]
{'fraction_non_alphanumeric': 0.12298959318826869, 'fraction_numerical': 0.003784295175023652, 'mean_word_length': 2.423948220064725, 'pattern_counts': {'":': 7, '<': 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': '7296122', 'n_tokens_mistral': 346, 'n_tokens_neox': 323, 'n_words': 66}