Commit f2c417b6 by Will Daly

Write Django logs to file during acceptance tests

parent fd49f092
......@@ -14,9 +14,10 @@ from lms.envs.sauce import *
# otherwise the browser will not render the pages correctly
DEBUG = True
# Disable warnings for acceptance tests, to make the logs readable
# Output Django logs to a file
import logging
logging.disable(logging.ERROR)
logging.basicConfig(filename=TEST_ROOT / "log" / "cms_acceptance.log", level=logging.ERROR)
import os
from random import choice, randint
......
......@@ -14,9 +14,10 @@ from .sauce import *
# otherwise the browser will not render the pages correctly
DEBUG = True
# Disable warnings for acceptance tests, to make the logs readable
# Output Django logs to a file
import logging
logging.disable(logging.ERROR)
logging.basicConfig(filename=TEST_ROOT / "log" / "lms_acceptance.log", level=logging.ERROR)
import os
from random import choice, randint
import string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment