Package schrodinger :: Package test :: Module test_markers
[hide private]
[frames] | no frames]

Module test_markers

Container for test marker functions. These can be used to mark functions, methods, or classes.

Functions [hide private]
 
_is_product_installed(product_name)
 
require_product(product_name)
A test requires a specific product.
Variables [hide private]
  display_present = True
hash(x)
  not_linux = <MarkDecorator 'skipif' {'args': (True,), 'kwargs'...
  not_darwin = <MarkDecorator 'skipif' {'args': (False,), 'kwarg...
  not_windows = <MarkDecorator 'skipif' {'args': (False,), 'kwar...
  not_windows32 = <MarkDecorator 'skipif' {'args': (False,), 'kw...
  not_windows64 = <MarkDecorator 'skipif' {'args': (False,), 'kw...
  require_display = <MarkDecorator 'skipif' {'args': (False,), '...
  slow = <MarkDecorator 'slow' {'args': (), 'kwargs': {}}>
  post_test = <MarkDecorator 'post_test' {'args': (), 'kwargs': ...
  __package__ = 'schrodinger.test'
Function Details [hide private]

require_product(product_name)

 

A test requires a specific product.

Automatically adds the following:
    * Test is a post test (must be run with --post-test
      or --post-test-only)
    * Test will be skipped if C{product_name} is not
      installed.
    * Test is marked with "require_{product_name}", and
      can be selected like -m require_{product_name},
      for example -m require_psp


Variables Details [hide private]

not_linux

Value:
<MarkDecorator 'skipif' {'args': (True,), 'kwargs': {'reason': 'Not su\
pported on Linux'}}>

not_darwin

Value:
<MarkDecorator 'skipif' {'args': (False,), 'kwargs': {'reason': 'Not s\
upported on MacOS (darwin)'}}>

not_windows

Value:
<MarkDecorator 'skipif' {'args': (False,), 'kwargs': {'reason': 'Not s\
upported on Windows'}}>

not_windows32

Value:
<MarkDecorator 'skipif' {'args': (False,), 'kwargs': {'reason': 'Not s\
upported on 32 bit Windows'}}>

not_windows64

Value:
<MarkDecorator 'skipif' {'args': (False,), 'kwargs': {'reason': 'Not s\
upported on 64 bit Windows'}}>

require_display

Value:
<MarkDecorator 'skipif' {'args': (False,), 'kwargs': {'reason': 'Requi\
res a display'}}>

post_test

Value:
<MarkDecorator 'post_test' {'args': (), 'kwargs': {}}>