<commit_before>from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person


class goes_to_school(Variable):
    value_type = bool
    default_value = True
    entity = Person
    label = "The person goes to school (only relevant for children)"
    definition_period = MONTH


class add_variable_reform(Reform):
    def apply(self):
        self.add_variable(goes_to_school)<commit_msg>Update test reform to make it fail without a fix<commit_after>from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person


def test_dynamic_variable():
    class NewDynamicClass(Variable):
        value_type = bool
        default_value = True
        entity = Person
        label = "The person goes to school (only relevant for children)"
        definition_period = MONTH

    NewDynamicClass.__name__ = "goes_to_school"
    return NewDynamicClass


class add_variable_reform(Reform):
    def apply(self):
        self.add_variable(test_dynamic_variable())
{'fraction_non_alphanumeric': 0.06143667296786389, 'fraction_numerical': 0.0, 'mean_word_length': 4.115942028985507, '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': '5989305', 'n_tokens_mistral': 306, 'n_tokens_neox': 297, 'n_words': 84}