File indexing completed on 2024-05-12 05:21:41
0001 # Copyright (c) 2019 Alexander Potashev <aspotashev@gmail.com> 0002 # 0003 # This program is free software; you can redistribute it and/or 0004 # modify it under the terms of the GNU General Public License as 0005 # published by the Free Software Foundation; either version 2 of 0006 # the License or (at your option) version 3 or any later version 0007 # accepted by the membership of KDE e.V. (or its successor approved 0008 # by the membership of KDE e.V.), which shall act as a proxy 0009 # defined in Section 14 of version 3 of the license. 0010 # 0011 # This program is distributed in the hope that it will be useful, 0012 # but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 # GNU General Public License for more details. 0015 # 0016 # You should have received a copy of the GNU General Public License 0017 # along with this program. If not, see <http://www.gnu.org/licenses/>. 0018 0019 0020 def test_same_name_tasks(app_testfile): 0021 app_testfile.addTask('Task1') 0022 app_testfile.addTask('Task1') 0023 task_ids = app_testfile.taskIdsFromName('Task1') 0024 assert len(task_ids) == 2 0025 assert len(task_ids[0]) == 36 0026 assert len(task_ids[1]) == 36 0027 assert task_ids[0] != task_ids[1]