Skip to content

Commit

Permalink
Tests: Make lfwSubset assertions more informative.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Amos committed Feb 21, 2016
1 parent d895487 commit a1a644c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions tests/openface_batch_represent_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@


def test_batch_represent():
# Get lfw-subset by running ./data/download-lfw-subset.sh
assert os.path.isdir(lfwSubset)
assert os.path.isdir(lfwSubset), "Get lfw-subset by running ./data/download-lfw-subset.sh"

workDir = tempfile.mkdtemp(prefix='OpenFaceBatchRep-')

Expand Down
3 changes: 1 addition & 2 deletions tests/openface_demo_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def test_classification_demo_pretrained():


def test_classification_demo_training():
# Get lfw-subset by running ./data/download-lfw-subset.sh
assert os.path.isdir(lfwSubset)
assert os.path.isdir(lfwSubset), "Get lfw-subset by running ./data/download-lfw-subset.sh"

workDir = tempfile.mkdtemp(prefix='OpenFaceCls-')

Expand Down
3 changes: 1 addition & 2 deletions tests/openface_neural_net_training_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@


def test_dnn_training():
# Get lfw-subset by running ./data/download-lfw-subset.sh
assert os.path.isdir(lfwSubset)
assert os.path.isdir(lfwSubset), "Get lfw-subset by running ./data/download-lfw-subset.sh"

imgWorkDir = tempfile.mkdtemp(prefix='OpenFaceTrainingTest-Img-')
cmd = ['python2', os.path.join(openfaceDir, 'util', 'align-dlib.py'),
Expand Down

0 comments on commit a1a644c

Please sign in to comment.