-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtestrun.py
50 lines (29 loc) · 1.21 KB
/
testrun.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from robograph.sample_graphs import sum_and_product, sort_and_unique, replace_word, \
scrape_image, http_fun, execution_stop, delayed_sum_and_product, drawing
'''
g1 = sum_and_product.sum_and_product([1, 2, 3, 4])
output = g1.execute()
g2 = sort_and_unique.sort_and_unique('sample_graphs/testinput.txt',
'sample_graphs/testoutput.txt')
g2.execute()
g3 = replace_word.replace_word('hello there my name is hello')
g3.execute()
g3 = replace_word.replace_word('the word you are looking for is not here')
g3.execute()
g4 = scrape_image.scraper_image('https://httpbin.org/image/png',
'sample_graphs/testscraped.png')
g4.execute()
g5 = http_fun.test_post_graph('https://httpbin.org/post', dict(x=1, y=2))
g5.execute()
g6 = http_fun.test_get_graph('https://httpbin.org/get', dict(pippo=1, pluto="ciao"))
g6.execute()
g7 = http_fun.test_put_graph('https://httpbin.org/put', dict(pippo=1, pluto="ciao"))
g7.execute()
g8 = http_fun.test_delete_graph('https://httpbin.org/delete')
g8.execute()
g9 = execution_stop.execution_stop(-7)
g9.execute()
g10 = delayed_sum_and_product.delayed_sum_and_product([8, 0, 2], 7)
g10.execute()
'''
g11 = drawing.plot()