Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 395db59

Browse files
author
Juanjo Alvarez
committed
New fixtures
Signed-off-by: Juanjo Alvarez <[email protected]>
1 parent 765fa13 commit 395db59

File tree

3 files changed

+809
-0
lines changed

3 files changed

+809
-0
lines changed

fixtures/issue130.py.native

Lines changed: 269 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,269 @@
1+
{
2+
"status": "ok",
3+
"errors": [],
4+
"ast": {
5+
"PY3AST": {
6+
"ast_type": "Module",
7+
"body": [
8+
{
9+
"ast_type": "Expr",
10+
"col_offset": 1,
11+
"lineno": 1,
12+
"value": {
13+
"args": [
14+
{
15+
"args": [
16+
{
17+
"ast_type": "Name",
18+
"col_offset": 31,
19+
"ctx": "Load",
20+
"end_col_offset": 36,
21+
"end_lineno": 1,
22+
"id": "target",
23+
"lineno": 1
24+
}
25+
],
26+
"ast_type": "Call",
27+
"col_offset": 14,
28+
"func": {
29+
"ast_type": "Attribute",
30+
"attr": "basename",
31+
"col_offset": 22,
32+
"ctx": "Load",
33+
"end_col_offset": 29,
34+
"end_lineno": 1,
35+
"lineno": 1,
36+
"value": {
37+
"ast_type": "Attribute",
38+
"attr": "path",
39+
"col_offset": 17,
40+
"ctx": "Load",
41+
"end_col_offset": 20,
42+
"end_lineno": 1,
43+
"lineno": 1,
44+
"value": {
45+
"ast_type": "Name",
46+
"col_offset": 14,
47+
"ctx": "Load",
48+
"end_col_offset": 15,
49+
"end_lineno": 1,
50+
"id": "os",
51+
"lineno": 1
52+
}
53+
}
54+
},
55+
"keywords": [],
56+
"lineno": 1
57+
}
58+
],
59+
"ast_type": "Call",
60+
"col_offset": 1,
61+
"func": {
62+
"ast_type": "Attribute",
63+
"attr": "which",
64+
"col_offset": 8,
65+
"ctx": "Load",
66+
"end_col_offset": 12,
67+
"end_lineno": 1,
68+
"lineno": 1,
69+
"value": {
70+
"ast_type": "Name",
71+
"col_offset": 1,
72+
"ctx": "Load",
73+
"end_col_offset": 6,
74+
"end_lineno": 1,
75+
"id": "shutil",
76+
"lineno": 1
77+
}
78+
},
79+
"keywords": [],
80+
"lineno": 1
81+
}
82+
},
83+
{
84+
"ast_type": "Expr",
85+
"col_offset": 1,
86+
"lineno": 2,
87+
"value": {
88+
"args": [
89+
{
90+
"args": [
91+
{
92+
"ast_type": "Name",
93+
"col_offset": 30,
94+
"ctx": "Load",
95+
"end_col_offset": 32,
96+
"end_lineno": 2,
97+
"id": "cwd",
98+
"lineno": 2
99+
},
100+
{
101+
"ast_type": "Str",
102+
"col_offset": 35,
103+
"end_col_offset": 39,
104+
"end_lineno": 2,
105+
"lineno": 2,
106+
"s": "bin"
107+
},
108+
{
109+
"ast_type": "Str",
110+
"col_offset": 42,
111+
"end_col_offset": 50,
112+
"end_lineno": 2,
113+
"lineno": 2,
114+
"s": "bigartm"
115+
}
116+
],
117+
"ast_type": "Call",
118+
"col_offset": 17,
119+
"func": {
120+
"ast_type": "Attribute",
121+
"attr": "join",
122+
"col_offset": 25,
123+
"ctx": "Load",
124+
"end_col_offset": 28,
125+
"end_lineno": 2,
126+
"lineno": 2,
127+
"value": {
128+
"ast_type": "Attribute",
129+
"attr": "path",
130+
"col_offset": 20,
131+
"ctx": "Load",
132+
"end_col_offset": 23,
133+
"end_lineno": 2,
134+
"lineno": 2,
135+
"value": {
136+
"ast_type": "Name",
137+
"col_offset": 17,
138+
"ctx": "Load",
139+
"end_col_offset": 18,
140+
"end_lineno": 2,
141+
"id": "os",
142+
"lineno": 2
143+
}
144+
}
145+
},
146+
"keywords": [],
147+
"lineno": 2
148+
},
149+
{
150+
"ast_type": "Name",
151+
"col_offset": 54,
152+
"ctx": "Load",
153+
"end_col_offset": 59,
154+
"end_lineno": 2,
155+
"id": "target",
156+
"lineno": 2
157+
}
158+
],
159+
"ast_type": "Call",
160+
"col_offset": 1,
161+
"func": {
162+
"ast_type": "Attribute",
163+
"attr": "copyfile",
164+
"col_offset": 8,
165+
"ctx": "Load",
166+
"end_col_offset": 15,
167+
"end_lineno": 2,
168+
"lineno": 2,
169+
"value": {
170+
"ast_type": "Name",
171+
"col_offset": 1,
172+
"ctx": "Load",
173+
"end_col_offset": 6,
174+
"end_lineno": 2,
175+
"id": "shutil",
176+
"lineno": 2
177+
}
178+
},
179+
"keywords": [],
180+
"lineno": 2
181+
}
182+
},
183+
{
184+
"ast_type": "Expr",
185+
"col_offset": 1,
186+
"lineno": 3,
187+
"value": {
188+
"args": [
189+
{
190+
"ast_type": "Str",
191+
"col_offset": 10,
192+
"end_col_offset": 23,
193+
"end_lineno": 3,
194+
"lineno": 3,
195+
"s": "Installed %s"
196+
},
197+
{
198+
"args": [
199+
{
200+
"ast_type": "Name",
201+
"col_offset": 42,
202+
"ctx": "Load",
203+
"end_col_offset": 47,
204+
"end_lineno": 3,
205+
"id": "target",
206+
"lineno": 3
207+
}
208+
],
209+
"ast_type": "Call",
210+
"col_offset": 26,
211+
"func": {
212+
"ast_type": "Attribute",
213+
"attr": "abspath",
214+
"col_offset": 34,
215+
"ctx": "Load",
216+
"end_col_offset": 40,
217+
"end_lineno": 3,
218+
"lineno": 3,
219+
"value": {
220+
"ast_type": "Attribute",
221+
"attr": "path",
222+
"col_offset": 29,
223+
"ctx": "Load",
224+
"end_col_offset": 32,
225+
"end_lineno": 3,
226+
"lineno": 3,
227+
"value": {
228+
"ast_type": "Name",
229+
"col_offset": 26,
230+
"ctx": "Load",
231+
"end_col_offset": 27,
232+
"end_lineno": 3,
233+
"id": "os",
234+
"lineno": 3
235+
}
236+
}
237+
},
238+
"keywords": [],
239+
"lineno": 3
240+
}
241+
],
242+
"ast_type": "Call",
243+
"col_offset": 1,
244+
"func": {
245+
"ast_type": "Attribute",
246+
"attr": "info",
247+
"col_offset": 5,
248+
"ctx": "Load",
249+
"end_col_offset": 8,
250+
"end_lineno": 3,
251+
"lineno": 3,
252+
"value": {
253+
"ast_type": "Name",
254+
"col_offset": 1,
255+
"ctx": "Load",
256+
"end_col_offset": 3,
257+
"end_lineno": 3,
258+
"id": "log",
259+
"lineno": 3
260+
}
261+
},
262+
"keywords": [],
263+
"lineno": 3
264+
}
265+
}
266+
]
267+
}
268+
}
269+
}

fixtures/issue130.py.source

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
shutil.which(os.path.basename(target))
2+
shutil.copyfile(os.path.join(cwd, "bin", "bigartm"), target)
3+
log.info("Installed %s", os.path.abspath(target))

0 commit comments

Comments
 (0)