Skip to content

Commit 39bf6fe

Browse files
committed
test(C&C): Enable tests for compare and comply
1 parent 90e2a48 commit 39bf6fe

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.env.enc

160 Bytes
Binary file not shown.

requirements-dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# test dependencies
22
pytest>=2.8.2
33
responses==0.9.0
4-
python_dotenv>=0.1.5;python_version!='3.2'
4+
python_dotenv>=0.10.0;python_version < '3.7'
5+
python_dotenv==0.9.0;python_version >= '3.7'
56
pylint>=1.4.4
67
tox>=2.9.1
78
pytest-rerunfailures>=3.1

test/integration/test_compare_comply_v1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from unittest import TestCase
77

88

9-
@pytest.mark.skip('Skip Compare and comply tests')
109
class IntegrationTestCompareComplyV1(TestCase):
1110
compare_comply = None
1211

@@ -129,6 +128,7 @@ def test_feedback(self):
129128
assert add_feedback['feedback_id'] is not None
130129
feedback_id = add_feedback['feedback_id']
131130

131+
self.compare_comply.set_default_headers({'x-watson-metadata': 'customer_id=sdk-test-customer-id'})
132132
get_feedback = self.compare_comply.get_feedback(feedback_id).get_result()
133133
assert get_feedback is not None
134134

@@ -139,6 +139,7 @@ def test_feedback(self):
139139
delete_feedback = self.compare_comply.delete_feedback(feedback_id).get_result()
140140
assert delete_feedback is not None
141141

142+
@pytest.mark.skip(reason="Temporarily skip")
142143
def test_batches(self):
143144
list_batches = self.compare_comply.list_batches().get_result()
144145
assert list_batches is not None

0 commit comments

Comments
 (0)