def test_set_names(self, model: Model, mock_ttg: Mock): model._journals = ['', 'c', 'd'] model._journal_mapping = {'c': 'e', 'd': 'f'} model._journal_index = 1 model.set_names() assert model.names == ['', 'a', 'b'] assert model._name_mapping == {'a': '1', 'b': '2'}
def test_sheet_id(self, model: Model): model._journals = ['', 'c', 'd'] model._journal_mapping = {'c': 'e', 'd': 'f'} assert model.sheet_id is None model._journal_index = 1 assert model.sheet_id == 'e'
def test_journal(self, model: Model): model._journals = ['', 'c', 'd'] assert model.journal is None model._journal_index = 1 assert model.journal == 'c'