mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
14 lines
273 B
Python
14 lines
273 B
Python
|
import pytest
|
||
|
|
||
|
|
||
|
@pytest.fixture
|
||
|
def api_key(monkeypatch):
|
||
|
monkeypatch.setenv('LINODE_API_KEY', 'foobar')
|
||
|
|
||
|
|
||
|
@pytest.fixture
|
||
|
def auth(monkeypatch):
|
||
|
def patched_test_echo(dummy):
|
||
|
return []
|
||
|
monkeypatch.setattr('linode.api.Api.test_echo', patched_test_echo)
|