Added fixtures for course and xblock creation Added bok-choy Studio tests Added bok-choy tests for ora self- and ai- assessment Refactored auto-auth; added staff and course-enrollment options Removed extra javascript properties from page objects
15 lines
380 B
Python
15 lines
380 B
Python
"""
|
|
Test helper functions.
|
|
"""
|
|
from path import path
|
|
|
|
|
|
def load_data_str(rel_path):
|
|
"""
|
|
Load a file from the "data" directory as a string.
|
|
`rel_path` is the path relative to the data directory.
|
|
"""
|
|
full_path = path(__file__).abspath().dirname() / "data" / rel_path #pylint: disable=E1120
|
|
with open(full_path) as data_file:
|
|
return data_file.read()
|