mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
273 B
Python
14 lines
273 B
Python
6 years ago
|
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)
|