Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6da5edc

Browse files
committed
TST: skeleton of tests passing datetime into every method
1 parent e6af5a3 commit 6da5edc

File tree

1 file changed

+384
-0
lines changed

1 file changed

+384
-0
lines changed

lib/matplotlib/tests/test_datetime.py

Lines changed: 384 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,384 @@
1+
import pytest
2+
3+
import matplotlib.pyplot as plt
4+
import matplotlib as mpl
5+
6+
7+
class TestDatetimePlotting:
8+
@pytest.mark.xfail(reason="Test for acorr not written yet")
9+
@mpl.style.context("default")
10+
def test_acorr(self):
11+
fig, ax = plt.subplots()
12+
ax.acorr(...)
13+
14+
@pytest.mark.xfail(reason="Test for angle_spectrum not written yet")
15+
@mpl.style.context("default")
16+
def test_angle_spectrum(self):
17+
fig, ax = plt.subplots()
18+
ax.angle_spectrum(...)
19+
20+
@pytest.mark.xfail(reason="Test for annotate not written yet")
21+
@mpl.style.context("default")
22+
def test_annotate(self):
23+
fig, ax = plt.subplots()
24+
ax.annotate(...)
25+
26+
@pytest.mark.xfail(reason="Test for arrow not written yet")
27+
@mpl.style.context("default")
28+
def test_arrow(self):
29+
fig, ax = plt.subplots()
30+
ax.arrow(...)
31+
32+
@pytest.mark.xfail(reason="Test for axhline not written yet")
33+
@mpl.style.context("default")
34+
def test_axhline(self):
35+
fig, ax = plt.subplots()
36+
ax.axhline(...)
37+
38+
@pytest.mark.xfail(reason="Test for axhspan not written yet")
39+
@mpl.style.context("default")
40+
def test_axhspan(self):
41+
fig, ax = plt.subplots()
42+
ax.axhspan(...)
43+
44+
@pytest.mark.xfail(reason="Test for axline not written yet")
45+
@mpl.style.context("default")
46+
def test_axline(self):
47+
fig, ax = plt.subplots()
48+
ax.axline(...)
49+
50+
@pytest.mark.xfail(reason="Test for axvline not written yet")
51+
@mpl.style.context("default")
52+
def test_axvline(self):
53+
fig, ax = plt.subplots()
54+
ax.axvline(...)
55+
56+
@pytest.mark.xfail(reason="Test for axvspan not written yet")
57+
@mpl.style.context("default")
58+
def test_axvspan(self):
59+
fig, ax = plt.subplots()
60+
ax.axvspan(...)
61+
62+
@pytest.mark.xfail(reason="Test for bar not written yet")
63+
@mpl.style.context("default")
64+
def test_bar(self):
65+
fig, ax = plt.subplots()
66+
ax.bar(...)
67+
68+
@pytest.mark.xfail(reason="Test for bar_label not written yet")
69+
@mpl.style.context("default")
70+
def test_bar_label(self):
71+
fig, ax = plt.subplots()
72+
ax.bar_label(...)
73+
74+
@pytest.mark.xfail(reason="Test for barbs not written yet")
75+
@mpl.style.context("default")
76+
def test_barbs(self):
77+
fig, ax = plt.subplots()
78+
ax.barbs(...)
79+
80+
@pytest.mark.xfail(reason="Test for barh not written yet")
81+
@mpl.style.context("default")
82+
def test_barh(self):
83+
fig, ax = plt.subplots()
84+
ax.barh(...)
85+
86+
@pytest.mark.xfail(reason="Test for boxplot not written yet")
87+
@mpl.style.context("default")
88+
def test_boxplot(self):
89+
fig, ax = plt.subplots()
90+
ax.boxplot(...)
91+
92+
@pytest.mark.xfail(reason="Test for broken_barh not written yet")
93+
@mpl.style.context("default")
94+
def test_broken_barh(self):
95+
fig, ax = plt.subplots()
96+
ax.broken_barh(...)
97+
98+
@pytest.mark.xfail(reason="Test for bxp not written yet")
99+
@mpl.style.context("default")
100+
def test_bxp(self):
101+
fig, ax = plt.subplots()
102+
ax.bxp(...)
103+
104+
@pytest.mark.xfail(reason="Test for clabel not written yet")
105+
@mpl.style.context("default")
106+
def test_clabel(self):
107+
fig, ax = plt.subplots()
108+
ax.clabel(...)
109+
110+
@pytest.mark.xfail(reason="Test for cohere not written yet")
111+
@mpl.style.context("default")
112+
def test_cohere(self):
113+
fig, ax = plt.subplots()
114+
ax.cohere(...)
115+
116+
@pytest.mark.xfail(reason="Test for contour not written yet")
117+
@mpl.style.context("default")
118+
def test_contour(self):
119+
fig, ax = plt.subplots()
120+
ax.contour(...)
121+
122+
@pytest.mark.xfail(reason="Test for contourf not written yet")
123+
@mpl.style.context("default")
124+
def test_contourf(self):
125+
fig, ax = plt.subplots()
126+
ax.contourf(...)
127+
128+
@pytest.mark.xfail(reason="Test for csd not written yet")
129+
@mpl.style.context("default")
130+
def test_csd(self):
131+
fig, ax = plt.subplots()
132+
ax.csd(...)
133+
134+
@pytest.mark.xfail(reason="Test for errorbar not written yet")
135+
@mpl.style.context("default")
136+
def test_errorbar(self):
137+
fig, ax = plt.subplots()
138+
ax.errorbar(...)
139+
140+
@pytest.mark.xfail(reason="Test for eventplot not written yet")
141+
@mpl.style.context("default")
142+
def test_eventplot(self):
143+
fig, ax = plt.subplots()
144+
ax.eventplot(...)
145+
146+
@pytest.mark.xfail(reason="Test for fill not written yet")
147+
@mpl.style.context("default")
148+
def test_fill(self):
149+
fig, ax = plt.subplots()
150+
ax.fill(...)
151+
152+
@pytest.mark.xfail(reason="Test for fill_between not written yet")
153+
@mpl.style.context("default")
154+
def test_fill_between(self):
155+
fig, ax = plt.subplots()
156+
ax.fill_between(...)
157+
158+
@pytest.mark.xfail(reason="Test for fill_betweenx not written yet")
159+
@mpl.style.context("default")
160+
def test_fill_betweenx(self):
161+
fig, ax = plt.subplots()
162+
ax.fill_betweenx(...)
163+
164+
@pytest.mark.xfail(reason="Test for hexbin not written yet")
165+
@mpl.style.context("default")
166+
def test_hexbin(self):
167+
fig, ax = plt.subplots()
168+
ax.hexbin(...)
169+
170+
@pytest.mark.xfail(reason="Test for hist not written yet")
171+
@mpl.style.context("default")
172+
def test_hist(self):
173+
fig, ax = plt.subplots()
174+
ax.hist(...)
175+
176+
@pytest.mark.xfail(reason="Test for hist2d not written yet")
177+
@mpl.style.context("default")
178+
def test_hist2d(self):
179+
fig, ax = plt.subplots()
180+
ax.hist2d(...)
181+
182+
@pytest.mark.xfail(reason="Test for hlines not written yet")
183+
@mpl.style.context("default")
184+
def test_hlines(self):
185+
fig, ax = plt.subplots()
186+
ax.hlines(...)
187+
188+
@pytest.mark.xfail(reason="Test for imshow not written yet")
189+
@mpl.style.context("default")
190+
def test_imshow(self):
191+
fig, ax = plt.subplots()
192+
ax.imshow(...)
193+
194+
@pytest.mark.xfail(reason="Test for loglog not written yet")
195+
@mpl.style.context("default")
196+
def test_loglog(self):
197+
fig, ax = plt.subplots()
198+
ax.loglog(...)
199+
200+
@pytest.mark.xfail(reason="Test for magnitude_spectrum not written yet")
201+
@mpl.style.context("default")
202+
def test_magnitude_spectrum(self):
203+
fig, ax = plt.subplots()
204+
ax.magnitude_spectrum(...)
205+
206+
@pytest.mark.xfail(reason="Test for matshow not written yet")
207+
@mpl.style.context("default")
208+
def test_matshow(self):
209+
fig, ax = plt.subplots()
210+
ax.matshow(...)
211+
212+
@pytest.mark.xfail(reason="Test for pcolor not written yet")
213+
@mpl.style.context("default")
214+
def test_pcolor(self):
215+
fig, ax = plt.subplots()
216+
ax.pcolor(...)
217+
218+
@pytest.mark.xfail(reason="Test for pcolorfast not written yet")
219+
@mpl.style.context("default")
220+
def test_pcolorfast(self):
221+
fig, ax = plt.subplots()
222+
ax.pcolorfast(...)
223+
224+
@pytest.mark.xfail(reason="Test for pcolormesh not written yet")
225+
@mpl.style.context("default")
226+
def test_pcolormesh(self):
227+
fig, ax = plt.subplots()
228+
ax.pcolormesh(...)
229+
230+
@pytest.mark.xfail(reason="Test for phase_spectrum not written yet")
231+
@mpl.style.context("default")
232+
def test_phase_spectrum(self):
233+
fig, ax = plt.subplots()
234+
ax.phase_spectrum(...)
235+
236+
@pytest.mark.xfail(reason="Test for plot not written yet")
237+
@mpl.style.context("default")
238+
def test_plot(self):
239+
fig, ax = plt.subplots()
240+
ax.plot(...)
241+
242+
@pytest.mark.xfail(reason="Test for plot_date not written yet")
243+
@mpl.style.context("default")
244+
def test_plot_date(self):
245+
fig, ax = plt.subplots()
246+
ax.plot_date(...)
247+
248+
@pytest.mark.xfail(reason="Test for psd not written yet")
249+
@mpl.style.context("default")
250+
def test_psd(self):
251+
fig, ax = plt.subplots()
252+
ax.psd(...)
253+
254+
@pytest.mark.xfail(reason="Test for quiver not written yet")
255+
@mpl.style.context("default")
256+
def test_quiver(self):
257+
fig, ax = plt.subplots()
258+
ax.quiver(...)
259+
260+
@pytest.mark.xfail(reason="Test for quiverkey not written yet")
261+
@mpl.style.context("default")
262+
def test_quiverkey(self):
263+
fig, ax = plt.subplots()
264+
ax.quiverkey(...)
265+
266+
@pytest.mark.xfail(reason="Test for scatter not written yet")
267+
@mpl.style.context("default")
268+
def test_scatter(self):
269+
fig, ax = plt.subplots()
270+
ax.scatter(...)
271+
272+
@pytest.mark.xfail(reason="Test for semilogx not written yet")
273+
@mpl.style.context("default")
274+
def test_semilogx(self):
275+
fig, ax = plt.subplots()
276+
ax.semilogx(...)
277+
278+
@pytest.mark.xfail(reason="Test for semilogy not written yet")
279+
@mpl.style.context("default")
280+
def test_semilogy(self):
281+
fig, ax = plt.subplots()
282+
ax.semilogy(...)
283+
284+
@pytest.mark.xfail(reason="Test for specgram not written yet")
285+
@mpl.style.context("default")
286+
def test_specgram(self):
287+
fig, ax = plt.subplots()
288+
ax.specgram(...)
289+
290+
@pytest.mark.xfail(reason="Test for spy not written yet")
291+
@mpl.style.context("default")
292+
def test_spy(self):
293+
fig, ax = plt.subplots()
294+
ax.spy(...)
295+
296+
@pytest.mark.xfail(reason="Test for stackplot not written yet")
297+
@mpl.style.context("default")
298+
def test_stackplot(self):
299+
fig, ax = plt.subplots()
300+
ax.stackplot(...)
301+
302+
@pytest.mark.xfail(reason="Test for stairs not written yet")
303+
@mpl.style.context("default")
304+
def test_stairs(self):
305+
fig, ax = plt.subplots()
306+
ax.stairs(...)
307+
308+
@pytest.mark.xfail(reason="Test for stem not written yet")
309+
@mpl.style.context("default")
310+
def test_stem(self):
311+
fig, ax = plt.subplots()
312+
ax.stem(...)
313+
314+
@pytest.mark.xfail(reason="Test for step not written yet")
315+
@mpl.style.context("default")
316+
def test_step(self):
317+
fig, ax = plt.subplots()
318+
ax.step(...)
319+
320+
@pytest.mark.xfail(reason="Test for streamplot not written yet")
321+
@mpl.style.context("default")
322+
def test_streamplot(self):
323+
fig, ax = plt.subplots()
324+
ax.streamplot(...)
325+
326+
@pytest.mark.xfail(reason="Test for table not written yet")
327+
@mpl.style.context("default")
328+
def test_table(self):
329+
fig, ax = plt.subplots()
330+
ax.table(...)
331+
332+
@pytest.mark.xfail(reason="Test for text not written yet")
333+
@mpl.style.context("default")
334+
def test_text(self):
335+
fig, ax = plt.subplots()
336+
ax.text(...)
337+
338+
@pytest.mark.xfail(reason="Test for tricontour not written yet")
339+
@mpl.style.context("default")
340+
def test_tricontour(self):
341+
fig, ax = plt.subplots()
342+
ax.tricontour(...)
343+
344+
@pytest.mark.xfail(reason="Test for tricontourf not written yet")
345+
@mpl.style.context("default")
346+
def test_tricontourf(self):
347+
fig, ax = plt.subplots()
348+
ax.tricontourf(...)
349+
350+
@pytest.mark.xfail(reason="Test for tripcolor not written yet")
351+
@mpl.style.context("default")
352+
def test_tripcolor(self):
353+
fig, ax = plt.subplots()
354+
ax.tripcolor(...)
355+
356+
@pytest.mark.xfail(reason="Test for triplot not written yet")
357+
@mpl.style.context("default")
358+
def test_triplot(self):
359+
fig, ax = plt.subplots()
360+
ax.triplot(...)
361+
362+
@pytest.mark.xfail(reason="Test for violin not written yet")
363+
@mpl.style.context("default")
364+
def test_violin(self):
365+
fig, ax = plt.subplots()
366+
ax.violin(...)
367+
368+
@pytest.mark.xfail(reason="Test for violinplot not written yet")
369+
@mpl.style.context("default")
370+
def test_violinplot(self):
371+
fig, ax = plt.subplots()
372+
ax.violinplot(...)
373+
374+
@pytest.mark.xfail(reason="Test for vlines not written yet")
375+
@mpl.style.context("default")
376+
def test_vlines(self):
377+
fig, ax = plt.subplots()
378+
ax.vlines(...)
379+
380+
@pytest.mark.xfail(reason="Test for xcorr not written yet")
381+
@mpl.style.context("default")
382+
def test_xcorr(self):
383+
fig, ax = plt.subplots()
384+
ax.xcorr(...)

0 commit comments

Comments
 (0)