-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from Phoupraw/fixture
test: NGE Fixture
- Loading branch information
Showing
4 changed files
with
522 additions
and
0 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,3 +1,5 @@ | ||
/fixtures/NGE.yaml | ||
|
||
node_modules | ||
|
||
# Byte-compiled / optimized / DLL files | ||
|
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 @@ | ||
# Fixtures | ||
|
||
[`../fixtures/`](../fixtures/)是测试数据。 | ||
|
||
```shell | ||
$ just manage loaddata ./fixtures/… | ||
# 注意,只识别正斜杠。 | ||
``` | ||
|
||
## 来源 | ||
|
||
### `NGE.yaml` | ||
|
||
从 [FGC:Main - EvaWiki](https://wiki.evageeks.org/FGC:Main) 复制得到`NGE.md`。 | ||
|
||
> **Note** | ||
> | ||
> 利用以下[用户样式](https://add0n.com/stylus.html)可隐藏不相关内容,方便复制。 | ||
> | ||
> ```css | ||
> @-moz-document url-prefix("https://wiki.evageeks.org/FGC:Episode_") { | ||
> .fgc_scenelist td:nth-child(-n+2), | ||
> .fgc_scenelist td:nth-child(n+4) { | ||
> display: none; | ||
> } | ||
> } | ||
> ``` | ||
再用[`convert_md_fixture`](../scripts/convert_md_fixture.py)转换为`NGE.yaml`。 | ||
```shell | ||
$ poetry run python ./scripts/convert_md_fixture.py ./fixtures/NGE.md | ||
``` | ||
目前不常用,故不收入`justfile`。 |
Oops, something went wrong.