12345678910111213141516171819202122232425262728 |
- import sys
- from mock import MagicMock
- from os import path
- import pytest
- def pytest_configure(config):
- """
- Initial test env setup
- """
- sys.path.append(path.join("backend", "lambda_layers", "boto_utils", "python"))
- sys.path.append(path.join("backend", "lambda_layers", "cr_helper", "python"))
- sys.path.append(path.join("backend", "lambda_layers", "decorators", "python"))
- sys.path.append(path.join("backend", "lambdas", "jobs"))
- sys.path.append(path.join("backend", "ecs_tasks", "delete_files"))
- @pytest.fixture(autouse=True)
- def cr_helper_mocks(monkeypatch):
- """
- Mock the Custom Resource Helper
- """
- import crhelper
- monkeypatch.setattr(crhelper, "CfnResource", MagicMock())
|