import files in __init__.py

Я разбил файл test.py на несколько файлов, например

app
app\models.py
app\views.py
app\tests
app\tests__init__.py
app\tests\test_bananas.py
app\tests\test_apples.py

и импортирую вот так в __init__.py:

from test_bananas import BananasTest
from test_apples import ApplesTest

pyflakes выдает ошибку

modules/app/tests/__init__.py:5: [E] PYFLAKES:'BananasTest' imported but unused
modules/app/tests/__init__.py:5: [E] PYFLAKES:'ApplesTest' imported but unused

Пробовал и этот

from test_bananas import *
from test_apples import *

опять pyflakes выдает ошибку

PYFLAKES:'from test_bananas import *' used; unable to detect undefined names
PYFLAKES:'from test_apples import *' used; unable to detect undefined names
7
задан danodonovan 27 June 2016 в 15:49
поделиться