<commit_before>from django.test import TestCase

from rockit.core import holders
from rockit.core import tasks

class TaskSettingsTestCase(TestCase):

    def test_it_should_be_able_to_call_task(self):
        holder = holders.WhenHolder()
        holder = tasks.when(holder)

        self.assertNotEqual(0, len(holder.get_content()))<commit_msg>Fixed unit test<commit_after>from django.test import TestCase

from rockit.core import holders
from rockit.core import models
from rockit.core import tasks

class TaskWhenTestCase(TestCase):

    def test_it_should_be_able_to_call_task(self):
        holder = holders.WhenHolder(models.Association.objects.create(name = 'my_node', namespace='test'))
        holder = tasks.when(holder)

        self.assertNotEqual(0, len(holder.get_content()))
{'fraction_non_alphanumeric': 0.08987341772151898, 'fraction_numerical': 0.002531645569620253, 'mean_word_length': 4.731884057971015, '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': '4023071', 'n_tokens_mistral': 237, 'n_tokens_neox': 227, 'n_words': 51}