Skip to content

Commit

Permalink
Merge pull request #33 from Phoupraw/fixture
Browse files Browse the repository at this point in the history
test: NGE Fixture
  • Loading branch information
Phoupraw authored Aug 10, 2023
2 parents ec3c89c + 7661ad0 commit 70633d1
Show file tree
Hide file tree
Showing 4 changed files with 522 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/fixtures/NGE.yaml

node_modules

# Byte-compiled / optimized / DLL files
Expand Down
35 changes: 35 additions & 0 deletions doc/fixtures.md
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`。
Loading

0 comments on commit 70633d1

Please sign in to comment.