Updates the unit tests
This commit is contained in:
Родитель
ccdb08521b
Коммит
558610989e
|
@ -20,8 +20,8 @@ class MockModel(object):
|
|||
def test_init(monkeypatch):
|
||||
""" Tests model initialisation
|
||||
"""
|
||||
monkeypatch.setattr(driver, 'LABEL_FILE', '../flaskwebapp/synset.txt')
|
||||
monkeypatch.setattr(driver, 'MODEL_FILE', '../flaskwebapp/ResNet_152.model')
|
||||
monkeypatch.setattr(driver, 'LABEL_FILE', '../synset.txt')
|
||||
monkeypatch.setattr(driver, 'MODEL_FILE', '../ResNet_152.model')
|
||||
init()
|
||||
assert driver.trainedModel != None
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче