Browse Source

Added py.test tests to exercise the samples

pull/8/head
Jason R. Coombs 14 years ago
parent
commit
93ae00661d
  1. 4
      tests/samples.py
  2. 9
      tests/test_samples.py

4
tests/samples.py

@ -1,3 +1,7 @@
"""
Samples of the various charts. Run this script to generate the reference
samples.
"""
import sys, os
from svg.charts.plot import Plot

9
tests/test_samples.py

@ -0,0 +1,9 @@
import samples
def pytest_generate_tests(metafunc):
if "sample" in metafunc.funcargnames:
for name, chart in samples.generate_samples():
metafunc.addcall(funcargs=dict(sample=chart))
def test_sample(sample):
res = sample.burn()
Loading…
Cancel
Save