Skip to content

Commit

Permalink
tests: remove LaTeX tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Deuchnord authored and Jérôme Deuchnord committed Aug 19, 2023
1 parent 06308ee commit c9dfa33
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 51 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
41 changes: 0 additions & 41 deletions tests/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,44 +152,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")

0 comments on commit c9dfa33

Please sign in to comment.