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
    • Installation via pip
    • Installation via pipx
    • Installation via Poetry
    • Installation from source
  • Usage
    • Ancestry
      • Citation
      • Dates
      • Enclosure
      • Event
      • Event Type
      • File
      • File reference
      • Link
      • Media Type
      • Name
      • Note
      • Person
      • Person Name
      • Place
      • Presence
      • Presence Role
      • Privacy
      • Source
      • Static translations
    • Asset Management
    • The command line
    • Application configuration
    • 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
    • npm
    • Projects
      • Project configuration
    • Templating
      • Filters
      • Globals
      • Tests
    • Translations
  • Development
    • Developing Betty itself
      • Helpful commands
      • Installing a development environment
      • Testing Betty’s source code
      • Working on Betty’s translations
    • Event dispatching
    • Plugins
      • CLI command plugins
      • Entity type plugins
      • Event type plugins
      • Extension plugins
      • Presence role plugins
    • Testing your source code
  • API Documentation
  • About
    • Contributing to Betty
      • Code of Conduct
    • Copyright & license
Back to top
View this page

Tests¶

Jinja2 tests are like function calls, and specifically designed to check a condition and return a boolean. In addition to Jinja2’s built-in tests, Betty provides the following:

  • date_range

  • end_of_life_event

  • entity

  • has_file_references

  • has_generated_entity_id

  • has_links

  • linked_data_dumpable

  • 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