Skip to content

Commit 107923c

Browse files
committed
don't upload to chunk.io anymore
Now requires authentication.
1 parent a5fb261 commit 107923c

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

test/helpers.py

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,6 @@ def __init__(self, fig):
7171
print('=' * 70)
7272
print(e.output)
7373
print('=' * 70)
74-
if 'DISPLAY' not in os.environ:
75-
cmd = ['curl', '-sT', tikz_file, 'chunk.io']
76-
out = subprocess.check_output(
77-
cmd,
78-
stderr=subprocess.STDOUT
79-
)
80-
print('Uploaded TikZ file to %s' % out.decode('utf-8'))
8174
raise
8275

8376
pdf_file = tmp_base + '.pdf'
@@ -121,35 +114,6 @@ def get_details(self):
121114

122115
print('pdftoppm output:')
123116
print(self.ptp_out.decode('utf-8'))
124-
125-
if 'DISPLAY' not in os.environ:
126-
# upload to chunk.io if we're on a headless client
127-
out = subprocess.check_output(
128-
['curl', '-sT', self.mpl_reference, 'chunk.io'],
129-
stderr=subprocess.STDOUT
130-
)
131-
print(
132-
'Uploaded reference matplotlib PDF file to %s' %
133-
out.decode('utf-8')
134-
)
135-
136-
out = subprocess.check_output(
137-
['curl', '-sT', self.tikz_file, 'chunk.io'],
138-
stderr=subprocess.STDOUT
139-
)
140-
print('Uploaded TikZ file to %s' % out.decode('utf-8'))
141-
142-
out = subprocess.check_output(
143-
['curl', '-sT', self.pdf_file, 'chunk.io'],
144-
stderr=subprocess.STDOUT
145-
)
146-
print('Uploaded output PDF file to %s' % out.decode('utf-8'))
147-
148-
out = subprocess.check_output(
149-
['curl', '-sT', self.png_file, 'chunk.io'],
150-
stderr=subprocess.STDOUT
151-
)
152-
print('Uploaded output PNG file to %s' % out.decode('utf-8'))
153117
return
154118

155119

0 commit comments

Comments
 (0)