-
Notifications
You must be signed in to change notification settings - Fork 786
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cc: Move config files and other testing resources to tests/ dir
- Loading branch information
1 parent
88a3ab5
commit 753c058
Showing
16 changed files
with
113 additions
and
52 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 |
---|---|---|
@@ -1,5 +1,51 @@ | ||
import os | ||
import sys | ||
from pathlib import Path | ||
|
||
import pytest | ||
|
||
MONKEY_BASE_PATH = str(Path(__file__).parent.parent) | ||
sys.path.insert(0, MONKEY_BASE_PATH) | ||
|
||
|
||
print("imported") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def resources_dir(pytestconfig): | ||
return os.path.join(pytestconfig.rootdir, "monkey", "tests", "resources") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def environment_resources_dir(resources_dir): | ||
return os.path.join(resources_dir, "environment") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def with_credentials(environment_resources_dir): | ||
return os.path.join(environment_resources_dir, "server_config_with_credentials.json") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def no_credentials(environment_resources_dir): | ||
return os.path.join(environment_resources_dir, "server_config_no_credentials.json") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def partial_credentials(environment_resources_dir): | ||
return os.path.join(environment_resources_dir, "server_config_partial_credentials.json") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def standard_with_credentials(environment_resources_dir): | ||
return os.path.join(environment_resources_dir, "server_config_standard_with_credentials.json") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def with_data_dir(environment_resources_dir): | ||
return os.path.join(environment_resources_dir, "server_config_with_data_dir.json") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def with_data_dir_home(environment_resources_dir): | ||
return os.path.join(environment_resources_dir, "server_config_with_data_dir_home.json") |
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,4 @@ | ||
{ | ||
"server_config": "password", | ||
"deployment": "develop" | ||
} |
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,4 @@ | ||
{ | ||
"server_config": "password", | ||
"deployment": "develop" | ||
} |