Skip to content

Commit

Permalink
test(integration): added integration tests with mock requests
Browse files Browse the repository at this point in the history
  • Loading branch information
akimrx committed Mar 26, 2024
1 parent 65738f6 commit c7dfbb6
Show file tree
Hide file tree
Showing 4 changed files with 964 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/e2e/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Not ready yet."""
18 changes: 18 additions & 0 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import pytest
import requests_mock
from typing import Any, Generator

from yc_lockbox import YandexLockboxClient


@pytest.fixture
def lockbox_client() -> YandexLockboxClient:
return YandexLockboxClient(
"t1.9exxlZrHlpKalJKVkM-.IvgNiLOPTh7FkZC3n6oi_y2lIc27gOByJ4QfVZKtccYso8U6MKeIZxe4LIyRosTSKEwYiZdV28C8zAIMaKcsAA" # fake, don't get your hopes up
)


@pytest.fixture
def requests_mocker() -> Generator[Any, Any, requests_mock.Mocker]:
with requests_mock.Mocker() as m:
yield m
Loading

0 comments on commit c7dfbb6

Please sign in to comment.