Skip to content

Commit dfa592a

Browse files
committed
test: Adding random generator
1 parent 01de0d6 commit dfa592a

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

.pytest_cache/v/cache/lastfailed

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"test/integration/test_integration_discovery_v1.py": true,
3+
"test/integration/test_integration_discovery_v1.py::Discoveryv1": true,
4+
"test/integration/test_integration_discovery_v1.py::TestCase": true,
5+
"test/integration/test_integration_speech_to_text_v1.py": true,
6+
"test/integration/test_integration_speech_to_text_v1.py::TestCase": true,
7+
"test/integration/test_integration_speech_to_text_v1.py::TestSpeechToTextV1": true,
8+
"test/integration/test_integration_text_to_speech_v1.py": true,
9+
"test/integration/test_integration_text_to_speech_v1.py::TestIntegrationTextToSpeechV1": true,
10+
"test/integration/test_integration_visual_recognition.py": true,
11+
"test/integration/test_integration_visual_recognition.py::IntegrationTestVisualRecognitionV3": true,
12+
"test/integration/test_integration_visual_recognition.py::TestCase": true,
13+
"test/unit/test_conversation_v1.py": true,
14+
"test/unit/test_discovery_v1.py": true,
15+
"test/unit/test_language_translator_v2.py": true,
16+
"test/unit/test_natural_language_classifier_v1.py": true,
17+
"test/unit/test_natural_language_understanding.py": true,
18+
"test/unit/test_natural_language_understanding.py::TestCase": true,
19+
"test/unit/test_natural_language_understanding.py::TestFeatures": true,
20+
"test/unit/test_natural_language_understanding.py::TestNaturalLanguageUnderstanding": true,
21+
"test/unit/test_personality_insights_v2.py": true,
22+
"test/unit/test_personality_insights_v3.py": true,
23+
"test/unit/test_speech_to_text_v1.py": true,
24+
"test/unit/test_text_to_speech_v1.py": true,
25+
"test/unit/test_tone_analyzer_v3.py": true,
26+
"test/unit/test_visual_recognition_v3.py": true,
27+
"test/unit/test_visual_recognition_v3.py::TestCase": true,
28+
"test/unit/test_visual_recognition_v3.py::TestVisualRecognitionV3": true,
29+
"test/unit/test_watson_service.py": true
30+
}

test/integration/test_integration_discovery_v1.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
# coding: utf-8
2+
13
from unittest import TestCase
24
import os
35
import watson_developer_cloud
46
import json
7+
import random
58

69
class Discoveryv1(TestCase):
710
def setUp(self):
@@ -34,7 +37,7 @@ def test_configurations(self):
3437

3538
def test_collections_and_expansions(self):
3639
new_collection_id = self.discovery.create_collection(self.environment_id,
37-
name='Example collection for python',
40+
name='Example collection for python' + random.choice('ABCDEFGHIJKLMNOPQ'),
3841
description="Integration test for python sdk")['collection_id']
3942
assert new_collection_id is not None
4043
self.discovery.get_collection(self.environment_id, new_collection_id)

0 commit comments

Comments
 (0)