-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
6aab473
commit 570d931
Showing
14 changed files
with
71 additions
and
53 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
import os | ||
|
||
from tests.utils import get_tests_path | ||
|
||
|
||
def get_integration_tests_path(): | ||
return get_tests_path() + '/integration_tests' | ||
return os.path.join(get_tests_path(), 'integration_tests') | ||
|
||
|
||
def get_sample_wrong_test_clean_arch_project_path(): | ||
return get_integration_tests_path() + '/utils/sample_projects/wrong_clean_arch_project' | ||
return os.path.join(get_integration_tests_path(), 'utils', 'sample_projects', 'wrong_clean_arch_project') | ||
|
||
|
||
def get_sample_correct_test_clean_arch_project_path(): | ||
return get_integration_tests_path() + '/utils/sample_projects/correct_clean_arch_project' | ||
return os.path.join(get_integration_tests_path(), 'utils', 'sample_projects', 'correct_clean_arch_project') | ||
|
||
|
||
def get_sample_wrong_test_hexa_arch_project_path(): | ||
return get_integration_tests_path() + '/utils/sample_projects/wrong_hexa_arch_project' | ||
return os.path.join(get_integration_tests_path(), 'utils', 'sample_projects', 'wrong_hexa_arch_project') | ||
|
||
|
||
def get_sample_correct_test_hexa_arch_project_path(): | ||
return get_integration_tests_path() + '/utils/sample_projects/correct_hexa_arch_project' | ||
return os.path.join(get_integration_tests_path(), 'utils', 'sample_projects', 'correct_hexa_arch_project') | ||
|
||
|
||
def get_sample_correct_test_hexa_arch_project_toml_path(): | ||
return get_integration_tests_path() + '/utils/sample_projects/correct_hexa_arch_project_toml' | ||
return os.path.join(get_integration_tests_path(), 'utils', 'sample_projects', 'correct_hexa_arch_project_toml') |
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,6 +1,14 @@ | ||
import os.path | ||
import pathlib | ||
|
||
|
||
def get_project_path() -> str: | ||
return __file__.split('/tests')[0] | ||
return str(pathlib.Path(__file__).resolve().parent.parent) | ||
|
||
|
||
def get_tests_path() -> str: | ||
return get_project_path() + '/tests' | ||
return os.path.join(get_project_path(), 'tests') | ||
|
||
|
||
def fix_path(path: str) -> str: | ||
return os.path.normcase(os.path.normpath(path)) |