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 import pytest 0020 0021 from test.fixture.app import AppHelper 0022 0023 0024 @pytest.fixture(scope='function') 0025 def app(): 0026 app_helper = AppHelper() 0027 yield app_helper 0028 app_helper.stop() 0029 0030 0031 @pytest.fixture(scope='function') 0032 def app_testfile(): 0033 app_helper = AppHelper() 0034 app_helper.run('/tmp/ktimetrackertest.ics') 0035 yield app_helper 0036 app_helper.stop()