Skip to content

Commit f982c5e

Browse files
committed
pytest: fix test config
1 parent d8cb155 commit f982c5e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Diff for: appenlight_client/tests.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -911,21 +911,21 @@ def test_urllib_URLOpener_open(self):
911911
import urllib
912912

913913
opener = urllib.URLopener()
914-
opener.open("http://www.ubuntu.com/")
914+
opener.open("https://www.ubuntu.com/")
915915
stats, result = get_local_storage(local_timing).get_thread_stats()
916916
assert len(result) == 1
917917

918918
def test_urllib_urlretrieve(self):
919919
import urllib
920920

921-
urllib.urlretrieve("http://www.ubuntu.com/")
921+
urllib.urlretrieve("https://www.ubuntu.com/")
922922
stats, result = get_local_storage(local_timing).get_thread_stats()
923923
assert len(result) == 1
924924

925925
def test_urllib2(self):
926926
import urllib2
927927

928-
urllib2.urlopen("http://www.ubuntu.com/")
928+
urllib2.urlopen("https://www.ubuntu.com/")
929929
stats, result = get_local_storage(local_timing).get_thread_stats()
930930
assert len(result) == 1
931931

@@ -935,7 +935,7 @@ def test_urllib3(self):
935935
except ImportError:
936936
return
937937
http = urllib3.PoolManager()
938-
http.request('GET', "http://www.ubuntu.com/")
938+
http.request('GET', "https://www.ubuntu.com/")
939939
stats, result = get_local_storage(local_timing).get_thread_stats()
940940
assert len(result) == 1
941941

@@ -944,7 +944,7 @@ def test_requests(self):
944944
import requests
945945
except ImportError:
946946
return
947-
requests.get("http://www.ubuntu.com/")
947+
requests.get("https://www.ubuntu.com/")
948948
stats, result = get_local_storage(local_timing).get_thread_stats()
949949
assert len(result) == 1
950950

@@ -1636,7 +1636,7 @@ def test_stack_parsing(self):
16361636
storage = get_local_storage(local_timing)
16371637

16381638
for row in storage.get_stack(slow_calls):
1639-
if row.get('parameters') == 'http://ubuntu.com/nested':
1639+
if row.get('parameters') == 'https://ubuntu.com/nested':
16401640
assert row['parents'] == ['custom']
16411641
elif row['statement'] == 'bar_func':
16421642
assert row['parents'] == ['custom']

Diff for: pytest.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[pytest]
22
testpaths = appenlight_client
3-
python_files = *.py
3+
python_files = appenlight_client/tests.py

0 commit comments

Comments
 (0)