-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jon Wayne Parrott
committed
Feb 18, 2016
1 parent
d0e18c2
commit 4d5d8cb
Showing
4 changed files
with
43 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import os | ||
|
||
import pytest | ||
from testing.cloud import Config, get_resource_path | ||
|
||
|
||
@pytest.fixture(scope='session') | ||
def cloud_config(): | ||
"""Provides a configuration option as a proxy to environment variables.""" | ||
return Config() | ||
|
||
|
||
@pytest.fixture(scope='module') | ||
def resource(request): | ||
"""Provides a function that returns the full path to a local or global | ||
testing resource""" | ||
local_path = os.path.dirname(request.module.__file__) | ||
return lambda *args: get_resource_path(args, local_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters