Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Enable integration tests (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
taehoonlee committed Jul 28, 2018
1 parent 42f3e52 commit c457429
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,13 @@ def test_that_internal_imports_are_not_overriden():
if not hasattr(keras.applications, 'keras_applications'):
return # Old Keras, don't run.

# TODO: enable the following tests
# if get_source_inputs is included in tf.keras.utils
return

import tensorflow as tf
keras_applications.set_keras_submodules(
backend=tf.keras.backend,
layers=tf.keras.layers,
models=tf.keras.models,
utils=tf.keras.utils)
assert keras.applications.vgg16.backend is keras.backend
assert keras_applications._KERAS_BACKEND.__name__ == 'tensorflow.keras.backend'

# Now test the reverse order
del keras
Expand All @@ -39,7 +35,7 @@ def test_that_internal_imports_are_not_overriden():
models=tf.keras.models,
utils=tf.keras.utils)
import keras
assert keras.applications.vgg16.backend is keras.backend
assert keras_applications._KERAS_BACKEND.__name__ == 'tensorflow.keras.backend'


if __name__ == '__main__':
Expand Down

0 comments on commit c457429

Please sign in to comment.