次の tests.py ファイルがあります。
from django.test import TestCase
from lxml import etree
import tempfile
import utils
class CreateSurveyFromCsvTextTests(TestCase):
def parsesSurveyPassedInAsCsvAndReturnsXmlRepresentation(self):
text = """"survey",,,,,
,"name","type","label","hint","required"
,"gps","geopoint","Record your current location",,"false"
,"start","start",,,
,"end","end",,,
"settings",
,"form_title"
,"New survey" """
xml = create_survey_from_csv_text(text)
lxml.fromstring(xml)
でモジュールを実行するとpython manage.py test
、出力は次のようになります
0.000 秒で 0 回のテストを実行
無効なインポートを行うとエラーがスローされるため、ランナーがファイルを取得していることはわかっています。
テストが呼び出されないのはなぜですか?