Skip to content

Commit

Permalink
test: update creds for vis rec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mamoonraja committed May 28, 2020
1 parent c538bd2 commit 1b1a1c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Binary file modified .env.enc
Binary file not shown.
2 changes: 1 addition & 1 deletion test/integration/test_visual_recognition_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def setup_class(cls):
'X-Watson-Learning-Opt-Out': '1',
'X-Watson-Test': '1'
})
cls.classifier_id = 'sdkxtestxclassifierxdoxnotxdel_1089651138'
cls.classifier_id = 'sdk-classifier-do-not-delete_1118105040'

def test_classify(self):
dog_path = abspath('resources/dog.jpg')
Expand Down
9 changes: 5 additions & 4 deletions test/integration/test_visual_recognition_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def setup_class(cls):
'X-Watson-Learning-Opt-Out': '1',
'X-Watson-Test': '1'
})
cls.collection_id = '9e5d8394-e9d2-4b53-b88f-da6fce7ad4e3'
cls.collection_id = 'a06f7036-0529-49ee-bdf6-82ddec276923'

def test_01_colllections(self):
# collection = self.visual_recognition.create_collection(
Expand All @@ -30,7 +30,7 @@ def test_01_colllections(self):
my_collection = self.visual_recognition.get_collection(
collection_id=self.collection_id).get_result()
assert my_collection is not None
assert my_collection.get('name') == 'do-not-delete-sdk-collection'
assert my_collection.get('name') == 'sdk-collection-do-not-delete'

# updated_collection = self.visual_recognition.update_collection(
# collection_id=self.collection_id,
Expand Down Expand Up @@ -58,9 +58,10 @@ def test_02_images(self):
# assert add_images is not None
# image_id = add_images.get('images')[0].get('image_id')

image_id = 'South_Africa_Luca_Galuzzi_2004_202349062c2307571a3f7edc71fe819f'
image_id = 'giraffe_00_202349062c2307571a3f7edc71fe819f'
list_images = self.visual_recognition.list_images(
self.collection_id).get_result()
print(list_images)
assert list_images is not None

image_details = self.visual_recognition.get_image_details(
Expand Down Expand Up @@ -116,7 +117,7 @@ def test_04_objects_and_training(self):
# assert add_images_result is not None
# image_id = add_images_result.get('images')[0].get('image_id')
# assert image_id is not None
image_id = '1280px-Giraffe_Ithala_KZN_South_202349062c2307571a3f7edc71fe819f'
image_id = 'giraffe_00_202349062c2307571a3f7edc71fe819f'

# add image training data
training_data = self.visual_recognition.add_image_training_data(
Expand Down

0 comments on commit 1b1a1c7

Please sign in to comment.