Skip to content

Commit

Permalink
Add another fix to models tests
Browse files Browse the repository at this point in the history
  • Loading branch information
auroracramer committed Nov 20, 2018
1 parent 4933b09 commit 9a6885f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@

def test_get_embedding_model_path():
embedding_model_path = get_embedding_model_path('linear', 'music')
assert '/'.join(embedding_model_path.split('/')[-3:]) == 'openl3/openl3_audio_linear_music.h5'
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'openl3/openl3_audio_linear_music.h5'

embedding_model_path = get_embedding_model_path('linear', 'env')
assert '/'.join(embedding_model_path.split('/')[-3:]) == 'openl3/openl3_audio_linear_env.h5'
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'openl3/openl3_audio_linear_env.h5'

embedding_model_path = get_embedding_model_path('mel128', 'music')
assert '/'.join(embedding_model_path.split('/')[-3:]) == 'openl3/openl3_audio_mel128_music.h5'
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'openl3/openl3_audio_mel128_music.h5'

embedding_model_path = get_embedding_model_path('mel128', 'env')
assert '/'.join(embedding_model_path.split('/')[-3:]) == 'openl3/openl3_audio_mel128_env.h5'
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'openl3/openl3_audio_mel128_env.h5'

embedding_model_path = get_embedding_model_path('mel256', 'music')
assert '/'.join(embedding_model_path.split('/')[-3:]) == 'openl3/openl3_audio_mel256_music.h5'
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'openl3/openl3_audio_mel256_music.h5'

embedding_model_path = get_embedding_model_path('mel256', 'env')
assert '/'.join(embedding_model_path.split('/')[-3:]) == 'openl3/openl3_audio_mel256_env.h5'
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'openl3/openl3_audio_mel256_env.h5'


def test_get_embedding_model():
Expand Down

0 comments on commit 9a6885f

Please sign in to comment.