Importing the modules required for the unit tests.

pull/61/head
Christian T. Jacobs 2017-04-15 01:19:33 +01:00
rodzic 3a5a1525a5
commit 39aa303959
11 zmienionych plików z 19 dodań i 17 usunięć

Wyświetl plik

@ -22,6 +22,7 @@ before_script:
- export PYTHONPATH=`pwd`:$PYTHONPATH
- echo $PYTHONPATH
- flake8 pyqso
- flake8 tests
- flake8 bin
script:

Wyświetl plik

@ -19,7 +19,6 @@
import re
import logging
import unittest
from datetime import datetime
import calendar
try:

Wyświetl plik

@ -18,11 +18,6 @@
# along with PyQSO. If not, see <http://www.gnu.org/licenses/>.
import logging
import unittest
try:
import unittest.mock as mock
except ImportError:
import mock
try:
import http.client as http_client
except ImportError:

Wyświetl plik

@ -20,11 +20,6 @@
from gi.repository import Gtk, GObject, Gdk
import logging
import telnetlib
import unittest
try:
import unittest.mock as mock
except ImportError:
import mock
try:
import configparser
except ImportError:

Wyświetl plik

@ -20,7 +20,6 @@
from gi.repository import Gtk
import logging
import sqlite3 as sqlite
import unittest
from pyqso.adif import AVAILABLE_FIELD_NAMES_ORDERED

Wyświetl plik

@ -20,12 +20,7 @@
from gi.repository import Gtk
import logging
import sqlite3 as sqlite
import os
from os.path import expanduser
try:
import unittest.mock as mock
except ImportError:
import mock
try:
import configparser
except ImportError:

Wyświetl plik

@ -17,6 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with PyQSO. If not, see <http://www.gnu.org/licenses/>.
import unittest
from pyqso.adif import *

Wyświetl plik

@ -17,6 +17,11 @@
# You should have received a copy of the GNU General Public License
# along with PyQSO. If not, see <http://www.gnu.org/licenses/>.
import unittest
try:
import unittest.mock as mock
except ImportError:
import mock
from pyqso.callsign_lookup import *

Wyświetl plik

@ -17,6 +17,11 @@
# You should have received a copy of the GNU General Public License
# along with PyQSO. If not, see <http://www.gnu.org/licenses/>.
import unittest
try:
import unittest.mock as mock
except ImportError:
import mock
from pyqso.dx_cluster import *

Wyświetl plik

@ -17,6 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with PyQSO. If not, see <http://www.gnu.org/licenses/>.
import unittest
from pyqso.log import *

Wyświetl plik

@ -17,6 +17,12 @@
# You should have received a copy of the GNU General Public License
# along with PyQSO. If not, see <http://www.gnu.org/licenses/>.
import unittest
try:
import unittest.mock as mock
except ImportError:
import mock
import os
from pyqso.logbook import *