You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
315 B
Python
16 lines
315 B
Python
2 years ago
|
import sys
|
||
|
|
||
|
import pytest
|
||
|
|
||
|
from imaginairy.suppress_logs import suppress_annoying_logs_and_warnings
|
||
|
|
||
|
if "pytest" in str(sys.argv):
|
||
|
suppress_annoying_logs_and_warnings()
|
||
|
|
||
|
|
||
|
@pytest.fixture(scope="session", autouse=True)
|
||
|
def pre_setup():
|
||
|
from imaginairy import api
|
||
|
|
||
|
api.IMAGINAIRY_SAFETY_MODE = "disabled"
|