File: conftest.py

package info (click to toggle)
python-aiobotocore 2.25.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,524 kB
  • sloc: python: 15,437; makefile: 84
file content (14 lines) | stat: -rw-r--r-- 458 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pytest

from tests.botocore_tests import create_session


@pytest.fixture()
def patched_session(monkeypatch):
    monkeypatch.setenv('AWS_ACCESS_KEY_ID', 'access_key')
    monkeypatch.setenv('AWS_SECRET_ACCESS_KEY', 'secret_key')
    monkeypatch.setenv('AWS_CONFIG_FILE', 'no-exist-foo')
    monkeypatch.delenv('AWS_PROFILE', raising=False)
    monkeypatch.delenv('AWS_DEFAULT_REGION', raising=False)
    session = create_session()
    return session