-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
22 changed files
with
146 additions
and
96 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,6 +1,6 @@ | ||
schema==0.7.5 | ||
pyyaml==5.4 | ||
configcrunch==1.0.0 | ||
configcrunch==1.0.3 | ||
appdirs==1.4.4 | ||
janus==0.7.0 | ||
psutil==5.8.0 | ||
|
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from schema import Schema | ||
from typing import List | ||
|
||
from configcrunch import YamlConfigDocument | ||
|
||
|
||
class YamlConfigDocumentStub(YamlConfigDocument): | ||
@classmethod | ||
def make(cls, | ||
document: dict, | ||
path: str = None, | ||
parent: 'YamlConfigDocument' = None, | ||
set_parent_to_self=False, | ||
absolute_paths=None | ||
): | ||
slf = cls.from_dict(document) | ||
slf.path = path | ||
slf.parent_doc = parent | ||
if absolute_paths is not None: | ||
slf.absolute_paths = absolute_paths | ||
if set_parent_to_self: | ||
slf.parent_doc = slf | ||
return slf | ||
|
||
@classmethod | ||
def header(cls) -> str: | ||
raise NotImplementedError("not available for stub") | ||
|
||
@classmethod | ||
def schema(cls) -> Schema: | ||
raise NotImplementedError("not available for stub") | ||
|
||
@classmethod | ||
def subdocuments(cls) -> Schema: | ||
raise NotImplementedError("not available for stub") |
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,5 +1,5 @@ | ||
project: | ||
name: integration_all | ||
name: integration-all | ||
src: . # is also replace by src in tests | ||
app: | ||
$ref: app/integration_app |
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,5 +1,5 @@ | ||
project: | ||
name: integration_some | ||
name: integration-some | ||
src: . # is also replace by src in tests | ||
app: | ||
name: some | ||
|
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
Oops, something went wrong.