Skip to content

Commit f52bc3b

Browse files
committed
Fix tests
1 parent 8ed2cb1 commit f52bc3b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/steps/conftest.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,19 @@
1919
from reportportal_client.client import RPClient
2020

2121

22+
class DummyResponse:
23+
# noinspection PyMethodMayBeStatic
24+
def json(self):
25+
return {
26+
"id": "321-321-4321-321",
27+
"message": "test",
28+
}
29+
30+
2231
@fixture
2332
def rp_client():
2433
client = RPClient("http://endpoint", "project", "api_key")
2534
client.session = mock.Mock()
35+
client.session.post.return_value = DummyResponse()
36+
client.session.put.return_value = DummyResponse()
2637
return client

0 commit comments

Comments
 (0)