Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/test_natural_language_understanding.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from unittest import TestCase
from watson_developer_cloud import NaturalLanguageUnderstandingV1
from watson_developer_cloud import WatsonException
import watson_developer_cloud.natural_language_understanding.features.v1 as features
from watson_developer_cloud.natural_language_understanding.features import (
v1 as features)
import pytest
import responses
import json


base_url = 'https://gateway.watsonplatform.net'
Expand Down Expand Up @@ -105,7 +105,7 @@ def test_html_analyze(self):
password='password')
nlu.analyze([features.Sentiment(),
features.Emotion(document=False)],
html="<span>hello this is a test</span>")
html="<span>hello this is a test</span>")
assert len(responses.calls) == 1

@responses.activate
Expand All @@ -121,4 +121,4 @@ def test_url_analyze(self):
nlu.analyze([features.Sentiment(),
features.Emotion(document=False)], url="http://cnn.com",
xpath="/bogus/xpath", language="en")
assert len(responses.calls) == 1
assert len(responses.calls) == 1