Tidied up some test fixtures.

master
Pacman Ghost 7 months ago
parent a30cbbb616
commit bb075ef0da
  1. 0
      vasl_templates/webapp/tests/fixtures/counters/6.5.0.txt
  2. 0
      vasl_templates/webapp/tests/fixtures/counters/6.5.1.txt
  3. 0
      vasl_templates/webapp/tests/fixtures/counters/6.6.0.txt
  4. 0
      vasl_templates/webapp/tests/fixtures/counters/6.6.1.txt
  5. 0
      vasl_templates/webapp/tests/fixtures/counters/6.6.2.txt
  6. 0
      vasl_templates/webapp/tests/fixtures/counters/6.6.3.txt
  7. 0
      vasl_templates/webapp/tests/fixtures/counters/6.6.4.txt
  8. 0
      vasl_templates/webapp/tests/fixtures/counters/6.6.5.txt
  9. 0
      vasl_templates/webapp/tests/fixtures/counters/6.6.6.txt
  10. 4
      vasl_templates/webapp/tests/test_counters.py

@ -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:

Loading…
Cancel
Save