Pārlūkot izejas kodu

test: remove LaTeX tests (#333)

tests: remove LaTeX tests
tags/v0.10.13
Deuchnord pirms 8 mēnešiem
committed by GitHub
vecāks
revīzija
9b9704fc93
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
2 mainītis faili ar 0 papildinājumiem un 52 dzēšanām
  1. +0
    -10
      .github/workflows/tests.yml
  2. +0
    -42
      tests/output.py

+ 0
- 10
.github/workflows/tests.yml Parādīt failu

@@ -43,13 +43,3 @@ jobs:
run: |
make tests

- name: Install TeXLive (Ubuntu)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get install -y texlive texlive-latex-extra

- name: E2E tests
env:
TEXLIVE_INSTALLED: 1
run: |
make tests

+ 0
- 42
tests/output.py Parādīt failu

@@ -151,45 +151,3 @@ def test_json_output():
}
"""
)


def test_pdf_output():
if platform != "linux":
# Consider it works everywhere if it does at least on Linux
return

tmp_dir = tempfile.mkdtemp()
result = execute(
KOSMORRO
+ [
"--latitude=50.5876",
"--longitude=3.0624",
"-d2020-01-27",
"--format=pdf",
f"--output={tmp_dir}/document.pdf",
]
)

if environ.get("TEXLIVE_INSTALLED") is None:
assert not result.is_successful()
assert (
result.stdout
== """Save the planet and paper!
Consider printing your PDF document only if really necessary, and use the other side of the sheet.
Building PDF was not possible, because some dependencies are not installed.
Please look at the documentation at https://kosmorro.space/cli/generate-pdf/ for more information.
"""
)

return

assert result.is_successful()
assert (
result.stdout
== """Save the planet and paper!
Consider printing your PDF document only if really necessary, and use the other side of the sheet.
"""
""
)

assert path.exists(f"{tmp_dir}/document.pdf")

Notiek ielāde…
Atcelt
Saglabāt