From d8d28f3d9d75a82d4e8421c6a7a95a456fb7ed00 Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Sat, 26 Aug 2017 21:41:50 +0100 Subject: Drop unit tests Unit tests were used to ensure that functions and methods work as expected. However, these tests are closely related to the implementation and will result in major changes after some refactoring. To reduce the amount of work needed to add new features or changes to the code most of these tests will be replaced with more abstract form of testing introduced in the following commits. --- tests/__init__.py | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'tests/__init__.py') diff --git a/tests/__init__.py b/tests/__init__.py index e82c6d5..1b06616 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,22 +1,23 @@ -""" - Test suite for virt-bootstrap - - Authors: Radostin Stoyanov - - Copyright (C) 2017 Radostin Stoyanov +# -*- coding: utf-8 -*- +# Authors: Radostin Stoyanov +# +# Copyright (C) 2017 Radostin Stoyanov +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . +""" +Test suite for virt-bootstrap """ import sys @@ -27,13 +28,12 @@ try: except ImportError: import unittest.mock as mock -sys.path += '../src' # noqa: E402 +sys.path.insert(0, '../src') # noqa: E402 -# pylint: disable=import-error +# pylint: disable=import-error, wrong-import-position from virtBootstrap import virt_bootstrap from virtBootstrap import sources from virtBootstrap import progress from virtBootstrap import utils -__all__ = ['unittest', 'mock', - 'virt_bootstrap', 'sources', 'progress', 'utils'] +__all__ = ['virt_bootstrap', 'sources', 'progress', 'utils'] -- cgit