Skip to content

Commit

Permalink
Extended conftest configuration for anomaly backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
sstrehlk committed May 10, 2022
1 parent cf3e4cf commit f7b8574
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions external/anomaly/tests/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
try:
import os
from e2e import config as config_e2e

config_e2e.repository_name = os.environ.get("TT_REPOSITORY_NAME", "ote/training_extensions/")
except ImportError:
pass
12 changes: 12 additions & 0 deletions external/anomaly/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
# See the License for the specific language governing permissions
# and limitations under the License.

try:
import e2e.fixtures

from e2e.conftest_utils import * # noqa
from e2e.conftest_utils import pytest_addoption as _e2e_pytest_addoption # noqa
from e2e import config # noqa
from e2e.utils import get_plugins_from_packages
pytest_plugins = get_plugins_from_packages([e2e])
except ImportError:
_e2e_pytest_addoption = None
pass
import config
import pytest
from ote_sdk.test_suite.pytest_insertions import (
get_pytest_plugins_from_ote,
Expand Down

0 comments on commit f7b8574

Please sign in to comment.