Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Betty documentation
Logo
Betty documentation
  • Installation
  • Usage
    • Ancestry
      • Citation
      • Dates
      • Enclosure
      • Event
      • Event Type
      • File
      • File reference
      • Gender
      • Link
      • Media Type
      • Name
      • Note
      • Person
      • Person Name
      • Place
      • Place Type
      • Presence
      • Presence Role
      • Privacy
      • Source
      • Static translations
    • Asset Management
    • The command line
    • Application configuration
    • Copyright notices
    • Environment variables
    • Extensions
      • The Cotton Candy extension
      • The Deriver extension
      • The Gramps extension
      • The HTTP API Documentation extension
      • The Maps extension
      • The Privatizer extension
      • The Trees extension
      • The Wikipedia extension
    • GEDCOM
    • Licenses
    • Projects
      • Project configuration
    • Templating
      • Filters
      • Globals
      • Tests
    • Translations
  • Development
    • Developing Betty itself
      • Helpful commands
      • Installing a development environment
      • Localization
      • Testing Betty’s source code
    • Event dispatching
    • Plugins
      • CLI command plugins
      • Copyright notice plugins
      • Entity type plugins
      • Event type plugins
      • Extension plugins
      • Gender plugins
      • License plugins
      • Place type plugins
      • Presence role plugins
      • Renderer plugins
      • Serialization format plugins
    • Testing your source code
  • API Documentation
  • Glossary
  • About
    • Contributing to Betty
      • Code of Conduct
    • Copyright & license
    • Sponsors
    • Versions
Back to top
View this page

Tests¶

Jinja2 tests are like function calls, and specifically designed to check a condition and return a boolean.

Built-in tests¶

In addition to Jinja2’s built-in tests, Betty provides the following:

  • date_range

  • end_of_life_event

  • entity

  • has_file_references

  • persistent_id

  • has_links

  • linked_data_dumpable

  • persistent_entity_id

  • private

  • public

  • start_of_life_event

  • subject_role

  • user_facing_entity

  • witness_role

Next
Translations
Previous
Globals
Copyright © Bart Feenstra and contributors
Made with Sphinx and @pradyunsg's Furo
On this page
  • Tests
    • Built-in tests