Pandokia
latest
  • Overview
  • Installing Pandokia
  • Using Pandokia with Existing Tests
  • Using Pandokia To Run Tests
  • Pandokia Test Result File Format
  • What are the contents of a test result?
  • What are the meanings of the fields in a report record?
  • Test Runners
  • Useful Patterns and Helper Functions
    • Python: Tests based on reference files
    • Python: Replacing XML regtests with Python
    • Python: Using JSON or pprint to compare complex data structures
    • Python: Implementing foo.test() for your package
    • Python: Running external executables in your test
    • Python: Parameterized Tests
  • Adding Test Runners to Pandokia
  • Pandokia Database Administration
  • Appendix: Glossary
  • Appendix: Importing Demo Data
  • FAQ
  • Programming in Pandokia
  • Environment variables
  • Assorted Tools
Pandokia
  • Docs »
  • Useful Patterns and Helper Functions
  • Edit on GitHub

Useful Patterns and Helper FunctionsΒΆ

  • Python: Tests based on reference files
    • Basic outline
      • Defining the list of output files - simple form
      • Defining the list of output files - complex form
    • Available Comparators
      • binary
      • diff
      • fits
      • text
      • user-defined comparators
  • Python: Replacing XML regtests with Python
  • Python: Using JSON or pprint to compare complex data structures
  • Python: Implementing foo.test() for your package
    • using py.test
    • using nose
    • using pycode
    • using multiple runners
  • Python: Running external executables in your test
    • Do not use subprocess
    • Running an external process
    • IRAF tasks
  • Python: Parameterized Tests
    • minipyt
    • py.test
    • nose
Next Previous

© Copyright 2009-2018, Association of Universities for Research in Astronomy Revision fa061728.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.