|
|
|
@ -63,7 +63,7 @@ def test_counter_images( webapp, webdriver ): #pylint: disable=too-many-locals |
|
|
|
|
return (code == 200 and data) or (code == 404 and not data) |
|
|
|
|
|
|
|
|
|
# initialize |
|
|
|
|
check_dir = os.path.join( os.path.split(__file__)[0], "fixtures" ) |
|
|
|
|
check_dir = os.path.join( os.path.split(__file__)[0], "fixtures/counters" ) |
|
|
|
|
save_dir = os.environ.get( "COUNTERS_SAVEDIR" ) # nb: define this to save the generated reports |
|
|
|
|
if save_dir: |
|
|
|
|
if os.path.isdir( save_dir ): |
|
|
|
@ -87,7 +87,7 @@ def test_counter_images( webapp, webdriver ): #pylint: disable=too-many-locals |
|
|
|
|
init_webapp( webapp, webdriver ) |
|
|
|
|
|
|
|
|
|
# figure out what we're expecting to see |
|
|
|
|
fname = os.path.join( check_dir, "vasl-pieces-{}.txt".format( |
|
|
|
|
fname = os.path.join( check_dir, "{}.txt".format( |
|
|
|
|
aliases.get( vasl_version, vasl_version ) |
|
|
|
|
) ) |
|
|
|
|
with open( fname, "r", encoding="utf-8" ) as fp: |
|
|
|
|