Skip to content

Commit

Permalink
Use explicit URIs for Video Intelligence sample tests [(#1743)](Googl…
Browse files Browse the repository at this point in the history
  • Loading branch information
alixhami authored Oct 10, 2018
1 parent b89a697 commit 98cbb15
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions samples/labels/labels_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os

import pytest

import labels


BUCKET = os.environ['CLOUD_STORAGE_BUCKET']
LABELS_FILE_PATH = '/video/cat.mp4'


@pytest.mark.slow
def test_feline_video_labels(capsys):
labels.analyze_labels(
'gs://{}{}'.format(BUCKET, LABELS_FILE_PATH))
labels.analyze_labels('gs://demomaker/cat.mp4')
out, _ = capsys.readouterr()
assert 'Video label description: cat' in out

0 comments on commit 98cbb15

Please sign in to comment.