Package schrodinger :: Package application :: Package glide :: Package packages :: Module testing
[hide private]
[frames] | no frames]

Module testing

Classes [hide private]
  GlideTestBase
Base class for Glide tests: changes to the build directory before running each test.
  GlideSystemTest
Functions [hide private]
 
get_log_tail(jobname, nlines=20)
Return a message with the last <nlines> lines from <jobname>.log.
 
get_log_diff_message(logname, context=6)
If the log file is "significantly different" than the reference file, return an error message, otherwise None.
 
find_hunk(diff)
Find the first diff hunk that changes the line count (i.e., has a different number of "+" than "-" lines).
Variables [hide private]
  __package__ = 'schrodinger.application.glide.packages'
Function Details [hide private]

get_log_diff_message(logname, context=6)

 

If the log file is "significantly different" than the reference file, return an error message, otherwise None. "Significantly different" means that there was a net addition or insertion of lines somewhere in the file.

find_hunk(diff)

 

Find the first diff hunk that changes the line count (i.e., has a different number of "+" than "-" lines). Takes a Differ delta as input, and returns a tuple of (begin, end) line numbers, or (None, None) if nothing is found.