-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: store writer framework IDE into project directory instead of ui…
….json * feat: save file into .wf directory * feat: save components into one file per page and using json line format
- Loading branch information
1 parent
aba8a6f
commit 4aa4433
Showing
9 changed files
with
319 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import os.path | ||
from typing import Union | ||
|
||
from . import file_fixtures | ||
|
||
fixture_path = os.path.realpath(os.path.dirname(__file__)) | ||
|
||
|
||
def load_fixture_content(path, format: file_fixtures.FileFormat = file_fixtures.FileFormat.auto) -> Union[str, dict, list]: | ||
""" | ||
Load the contents of a file from the fixture folder | ||
>>> c = load_fixture_content('obsoletes/ui_obsolete_visible.json') | ||
""" | ||
file_path = os.path.join(fixture_path, path) | ||
return file_fixtures.read(file_path, format) |
Oops, something went wrong.