forked from openedx-unsupported/ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconftest.py
More file actions
19 lines (14 loc) · 757 Bytes
/
conftest.py
File metadata and controls
19 lines (14 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
Set up for running pytest
Pytest is faster than running `./manage.py test` since it will not create a
database. If a test has database dependencies, that test will not pass.
"""
from __future__ import absolute_import, print_function
import django
def pytest_configure(config): # pylint: disable=unused-argument
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
print("! WARNING: Not all tests pass with pytest. Pytest does not create a !\n"
"! database. If a test has database dependencies, that test will not !\n"
"! pass. !")
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
django.setup()