mirror of
https://github.com/openzim/zimit.git
synced 2025-09-23 03:52:16 -04:00
updated CI test website URL
This commit is contained in:
parent
80f3d3293f
commit
885e1763a1
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -13,7 +13,7 @@ jobs:
|
||||
run: docker build -t zimit .
|
||||
|
||||
- name: run crawl
|
||||
run: docker run -v $PWD/output:/output zimit zimit --url http://isago.ml/ --name isago --zim-file isago.zim --adminEmail test@example.com --mobileDevice --statsFilename /output/stats.json --keep
|
||||
run: docker run -v $PWD/output:/output zimit zimit --url http://isago.rskg.org/ --name isago --zim-file isago.zim --adminEmail test@example.com --mobileDevice --statsFilename /output/stats.json --keep
|
||||
|
||||
- name: run integration test suite
|
||||
run: docker run -v $PWD/test/integration.py:/app/integration.py -v $PWD/output:/output zimit bash -c "pip install pytest; pytest -v ./integration.py"
|
||||
|
@ -17,10 +17,10 @@ def test_is_file():
|
||||
|
||||
|
||||
def test_zim_main_page():
|
||||
"""Main page specified, http://isago.ml/, was a redirect to https
|
||||
"""Main page specified, http://isago.rskg.org/, was a redirect to https
|
||||
Ensure main page is the redirected page"""
|
||||
|
||||
assert b'"https://isago.ml/"' in get_zim_article(
|
||||
assert b'"https://isago.rskg.org/"' in get_zim_article(
|
||||
"/output/isago.zim", "A/index.html"
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user