Skip to content

Commit 48f8edf

Browse files
committed
fix: rb and py tests
1 parent d8ba621 commit 48f8edf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

templates/ruby/lib/container/client.rb.twig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ module {{ spec.title | caseUcfirst }}
4848
#
4949
# @return [self]
5050
def set_endpoint(endpoint)
51+
if not endpoint.start_with?('http://') and not endpoint.start_with?('https://')
52+
raise {{spec.title | caseUcfirst}}::Exception.new('Invalid endpoint URL: ' + endpoint)
53+
end
54+
5155
@endpoint = endpoint
5256

5357
self

tests/languages/python/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
print(e.response)
9898

9999
try:
100-
client.setEndpoint("htp://cloud.appwrite.io/v1")
100+
client.set_endpoint("htp://cloud.appwrite.io/v1")
101101
except AppwriteException as e:
102102
print(e.message)
103103

0 commit comments

Comments
 (0)