Skip to content

Commit 571f6da

Browse files
committed
eee
Signed-off-by: Martin Sakin <[email protected]>
1 parent 2ff7f50 commit 571f6da

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/rest.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,12 @@ def test_get_connection(self):
109109
url = '/repos/hpcugent/vsc-base/pulls/296/comments'
110110
try:
111111
connection = client.get_connection(Client.POST, url, body="{'body': 'test'}", headers={})
112-
self.assertEqual(connection, "")
113112
self.assertTrue(False, "Trying to post a comment unauthorized should result in HTTPError")
114113
except HTTPError:
115114
pass
116115

117-
import sys
118-
print("\n\n\n --XXX-- connection: %s\n\n\n", connection)
119-
sys.stdout.flush()
116+
def test_url(self):
117+
"""A test of a GET to the github API with different url"""
118+
status, body = self.client.request(Client.GET, '/monitoring/time/1651667297/', None, None)
119+
print("\n\n\n --XXX-- test_get_method() | body: ", body, "\n\n\n")
120+
self.assertEqual(status, 200)

0 commit comments

Comments
 (0)