-
Notifications
You must be signed in to change notification settings - Fork 245
整理: エンジンマニフェストをAPI向けと内部向けで分離 #1359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tarepan
wants to merge
20
commits into
VOICEVOX:master
Choose a base branch
from
tarepan:refactor/manifest_handling
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
0bad672
refactor: `ManifestContainer` を追加
tarepan cab1a75
Merge branch 'master' into refactor/manifest_handling
tarepan e92ddee
Merge branch 'master' into refactor/manifest_handling
tarepan 68ec841
fix: merge ミスを解消
tarepan 6821bb8
refactor: `.root` の意味を明確化
tarepan 99e8812
refactor: `generate_api_manifest()` をリネーム
tarepan 84b04cf
refactor: `ManifestContainer` → `ManifestWrapper` へリネーム
tarepan 36ba582
refactor: 語句 `マニフェスト` を明確化
tarepan cd5fb22
refactor: テストを移動
tarepan 32ab812
fix: `__init__.py` を追加
tarepan 311e73c
Merge branch 'master' into refactor/manifest_handling
tarepan 656d4da
fix: merge エラーを解消
tarepan 86ecb9d
Merge branch 'master' into refactor/manifest_handling
tarepan ae970fa
fix: 命名規則を遵守
tarepan ce135be
fix: `.supported_vvlib_manifest_version` 実装予定を NOTE として明記
tarepan 15bdf49
Merge branch 'master' into refactor/manifest_handling
tarepan d67583c
fix: lint
tarepan daf249e
refactor: `EngineManifest` を router へ移動
tarepan 07f7cb7
Merge branch 'master' into refactor/manifest_handling
tarepan 71ab005
fix: マニフェスト変数をリネーム
tarepan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| """マニフェストのテスト""" | ||
|
|
||
| from pathlib import Path | ||
|
|
||
| from voicevox_engine.engine_manifest import ManifestContainer | ||
|
|
||
|
|
||
| def test_ManifestContainer_init() -> None: | ||
| """`ManifestContainer.from_file()` でインスタンスが生成される。""" | ||
| ManifestContainer.from_file(Path("engine_manifest.json")) | ||
| assert True | ||
|
|
||
|
|
||
| def test_ManifestContainer_relative_path() -> None: | ||
| """`ManifestContainer.root` を用いてマニフェスト内の相対パスが解決できる。""" | ||
| container = ManifestContainer.from_file(Path("engine_manifest.json")) | ||
| tos_path = container.root / container.terms_of_service | ||
| assert tos_path.exists() | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.